We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent8803440 commitc4c7ae5Copy full SHA for c4c7ae5
src/tests.rs
@@ -93,15 +93,15 @@ fn simple_width_match(c: char) -> Option<usize> {
93
_ =>UnicodeWidthChar::width(c),
94
}
95
96
-#[cfg(all(feature ="bench", not(feature ="no_std")))]
+#[cfg(feature ="bench")]
97
#[bench]
98
fnenwik8(b:&mutBencher){
99
// To benchmark, download & unzip `enwik8` from https://data.deepai.org/enwik8.zip
100
let data_path ="bench_data/enwik8";
101
let string = std::fs::read_to_string(data_path).unwrap_or_default();
102
b.iter(|| test::black_box(UnicodeWidthStr::width(string.as_str())));
103
104
105
106
fnjawiki(b:&mutBencher){
107
// To benchmark, download & extract `jawiki-20220501-pages-articles-multistream-index.txt` from