File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -93,15 +93,15 @@ fn simple_width_match(c: char) -> Option<usize> {
93
93
_ => UnicodeWidthChar :: width ( c) ,
94
94
}
95
95
}
96
- #[ cfg( all ( feature = "bench" , not ( feature = "no_std" ) ) ) ]
96
+ #[ cfg( feature = "bench" ) ]
97
97
#[ bench]
98
98
fn enwik8 ( b : & mut Bencher ) {
99
99
// To benchmark, download & unzip `enwik8` from https://data.deepai.org/enwik8.zip
100
100
let data_path = "bench_data/enwik8" ;
101
101
let string = std:: fs:: read_to_string ( data_path) . unwrap_or_default ( ) ;
102
102
b. iter ( || test:: black_box ( UnicodeWidthStr :: width ( string. as_str ( ) ) ) ) ;
103
103
}
104
- #[ cfg( all ( feature = "bench" , not ( feature = "no_std" ) ) ) ]
104
+ #[ cfg( feature = "bench" ) ]
105
105
#[ bench]
106
106
fn jawiki ( b : & mut Bencher ) {
107
107
// To benchmark, download & extract `jawiki-20220501-pages-articles-multistream-index.txt` from
You can’t perform that action at this time.
0 commit comments