Skip to content

Commit 04a0135

Browse files
committed
make unicode benchmark not take 20s
1 parent 25cbfcc commit 04a0135

File tree

1 file changed

+1
-1
lines changed
  • bench-cargo-miri/unicode/src

1 file changed

+1
-1
lines changed

bench-cargo-miri/unicode/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn all_valid_chars() -> impl Iterator<Item = char> {
1414

1515
fn main() {
1616
// Take only the first few chars because we don't want to wait all day
17-
for c in all_valid_chars().take(2_000) {
17+
for c in all_valid_chars().take(1_500) {
1818
let _ = UnicodeXID::is_xid_continue(c);
1919
}
2020
}

0 commit comments

Comments
 (0)