Skip to content

Instantly share code, notes, and snippets.

@zamazan4ik
Created September 17, 2024 15:43
Show Gist options
  • Save zamazan4ik/7b43a80c46a080ddd0f965545f959da3 to your computer and use it in GitHub Desktop.
Save zamazan4ik/7b43a80c46a080ddd0f965545f959da3 to your computer and use it in GitHub Desktop.
grex: Release
Running benches/benchmark.rs (target/release/deps/benchmark-f29128c3e8149681)
grex with default settings
time: [27.740 ms 27.757 ms 27.774 ms]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
grex with conversion of repetitions
time: [32.027 ms 32.045 ms 32.062 ms]
grex with conversion of digits
time: [27.987 ms 28.006 ms 28.024 ms]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
grex with conversion of non-digits
time: [402.56 µs 402.64 µs 402.74 µs]
Found 12 outliers among 100 measurements (12.00%)
1 (1.00%) low mild
8 (8.00%) high mild
3 (3.00%) high severe
Benchmarking grex with conversion of words: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 8.0s, enable flat sampling, or reduce sample count to 50.
grex with conversion of words
time: [1.5875 ms 1.5883 ms 1.5890 ms]
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) high mild
1 (1.00%) high severe
grex with conversion of non-words
time: [26.723 ms 26.737 ms 26.752 ms]
grex with conversion of whitespace
time: [27.895 ms 27.933 ms 27.995 ms]
Found 2 outliers among 100 measurements (2.00%)
1 (1.00%) high mild
1 (1.00%) high severe
Benchmarking grex with conversion of non-whitespace: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 5.7s, enable flat sampling, or reduce sample count to 60.
grex with conversion of non-whitespace
time: [1.1408 ms 1.1411 ms 1.1415 ms]
Found 11 outliers among 100 measurements (11.00%)
5 (5.00%) low mild
4 (4.00%) high mild
2 (2.00%) high severe
grex with case-insensitive matching
time: [19.876 ms 19.885 ms 19.895 ms]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
grex with verbose mode time: [28.029 ms 28.046 ms 28.065 ms]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment