Skip to content

Instantly share code, notes, and snippets.

Created February 21, 2016 13:28
test anchored_literal_long_match ... bench: 87 ns/iter (+/- 2) = 4482 MB/s
test anchored_literal_long_non_match ... bench: 58 ns/iter (+/- 1) = 6724 MB/s
test anchored_literal_short_match ... bench: 88 ns/iter (+/- 3) = 295 MB/s
test anchored_literal_short_non_match ... bench: 83 ns/iter (+/- 2) = 313 MB/s
test easy0_1K ... bench: 266 ns/iter (+/- 5) = 3849 MB/s
test easy0_1MB ... bench: 227,104 ns/iter (+/- 2,380) = 4617 MB/s
test easy0_32 ... bench: 77 ns/iter (+/- 1) = 415 MB/s
test easy0_32K ... bench: 7,065 ns/iter (+/- 84) = 4638 MB/s
test easy1_1K ... bench: 712 ns/iter (+/- 15) = 1438 MB/s
test easy1_1MB ... bench: 753,854 ns/iter (+/- 11,479) = 1390 MB/s
test easy1_32 ... bench: 72 ns/iter (+/- 1) = 444 MB/s
test easy1_32K ... bench: 23,500 ns/iter (+/- 161) = 1394 MB/s
test hard_1K ... bench: 32,101 ns/iter (+/- 254) = 31 MB/s
test hard_1MB ... bench: 35,169,490 ns/iter (+/- 86,002) = 29 MB/s
test hard_32 ... bench: 86 ns/iter (+/- 1) = 372 MB/s
test hard_32K ... bench: 996,317 ns/iter (+/- 17,314) = 32 MB/s
test literal ... bench: 129 ns/iter (+/- 1) = 395 MB/s
test match_class ... bench: 176 ns/iter (+/- 3) = 460 MB/s
test match_class_in_range ... bench: 174 ns/iter (+/- 3) = 465 MB/s
test match_class_unicode ... bench: 512 ns/iter (+/- 10) = 314 MB/s
test medium_1K ... bench: 309 ns/iter (+/- 5) = 3313 MB/s
test medium_1MB ... bench: 238,785 ns/iter (+/- 3,156) = 4391 MB/s
test medium_32 ... bench: 60 ns/iter (+/- 1) = 533 MB/s
test medium_32K ... bench: 7,519 ns/iter (+/- 168) = 4358 MB/s
test not_literal ... bench: 272 ns/iter (+/- 6) = 187 MB/s
test one_pass_long_prefix ... bench: 87 ns/iter (+/- 1) = 298 MB/s
test one_pass_long_prefix_not ... bench: 87 ns/iter (+/- 0) = 298 MB/s
test one_pass_short ... bench: 115 ns/iter (+/- 0) = 147 MB/s
test one_pass_short_not ... bench: 121 ns/iter (+/- 1) = 140 MB/s
test sherlock::before_holmes ... bench: 14,381,025 ns/iter (+/- 67,808) = 41 MB/s
test sherlock::holmes_cochar_watson ... bench: 548,438 ns/iter (+/- 9,517) = 1084 MB/s
test sherlock::letters ... bench: 28,335,749 ns/iter (+/- 58,097) = 20 MB/s
test sherlock::letters_lower ... bench: 27,340,223 ns/iter (+/- 54,406) = 21 MB/s
test sherlock::letters_upper ... bench: 3,701,402 ns/iter (+/- 49,991) = 160 MB/s
test sherlock::line_boundary_sherlock_holmes ... bench: 194,056 ns/iter (+/- 2,307) = 3065 MB/s
test sherlock::name_alt1 ... bench: 453,855 ns/iter (+/- 3,154) = 1310 MB/s
test sherlock::name_alt2 ... bench: 493,558 ns/iter (+/- 5,821) = 1205 MB/s
test sherlock::name_alt3 ... bench: 997,529 ns/iter (+/- 10,992) = 596 MB/s
test sherlock::name_alt3_nocase ... bench: 3,362,401 ns/iter (+/- 34,029) = 176 MB/s
test sherlock::name_alt4 ... bench: 940,085 ns/iter (+/- 6,770) = 632 MB/s
test sherlock::name_alt4_nocase ... bench: 1,787,449 ns/iter (+/- 14,724) = 332 MB/s
test sherlock::name_holmes ... bench: 399,831 ns/iter (+/- 5,315) = 1487 MB/s
test sherlock::name_holmes_nocase ... bench: 493,125 ns/iter (+/- 5,777) = 1206 MB/s
test sherlock::name_sherlock ... bench: 268,481 ns/iter (+/- 7,326) = 2215 MB/s
test sherlock::name_sherlock_holmes ... bench: 196,745 ns/iter (+/- 1,363) = 3023 MB/s
test sherlock::name_sherlock_holmes_nocase ... bench: 1,328,071 ns/iter (+/- 19,036) = 447 MB/s
test sherlock::name_sherlock_nocase ... bench: 1,268,441 ns/iter (+/- 12,138) = 469 MB/s
test sherlock::name_whitespace ... bench: 267,976 ns/iter (+/- 2,518) = 2220 MB/s
test sherlock::no_match_common ... bench: 596,935 ns/iter (+/- 7,204) = 996 MB/s
test sherlock::no_match_uncommon ... bench: 585,266 ns/iter (+/- 10,323) = 1016 MB/s
test sherlock::quotes ... bench: 1,216,368 ns/iter (+/- 12,511) = 489 MB/s
test sherlock::the_lower ... bench: 1,214,538 ns/iter (+/- 10,928) = 489 MB/s
test sherlock::the_nocase ... bench: 1,279,797 ns/iter (+/- 19,266) = 464 MB/s
test sherlock::the_upper ... bench: 773,682 ns/iter (+/- 10,692) = 768 MB/s
test sherlock::the_whitespace ... bench: 1,367,971 ns/iter (+/- 10,942) = 434 MB/s
test sherlock::word_ending_n ... bench: 12,765,991 ns/iter (+/- 118,208) = 46 MB/s
test sherlock::words ... bench: 10,737,821 ns/iter (+/- 50,855) = 55 MB/s
test bench::anchored_literal_long_match ... bench: 72 ns/iter (+/- 1) = 5416 MB/s
test bench::anchored_literal_long_non_match ... bench: 60 ns/iter (+/- 8) = 6500 MB/s
test bench::anchored_literal_short_match ... bench: 72 ns/iter (+/- 1) = 361 MB/s
test bench::anchored_literal_short_non_match ... bench: 59 ns/iter (+/- 2) = 440 MB/s
test bench::easy0_1K ... bench: 213 ns/iter (+/- 47) = 4807 MB/s
test bench::easy0_1MB ... bench: 255,327 ns/iter (+/- 2,970) = 4106 MB/s
test bench::easy0_32 ... bench: 73 ns/iter (+/- 26) = 438 MB/s
test bench::easy0_32K ... bench: 5,421 ns/iter (+/- 263) = 6044 MB/s
test bench::easy1_1K ... bench: 289 ns/iter (+/- 5) = 3543 MB/s
test bench::easy1_1MB ... bench: 327,825 ns/iter (+/- 6,332) = 3198 MB/s
test bench::easy1_32 ... bench: 77 ns/iter (+/- 13) = 415 MB/s
test bench::easy1_32K ... bench: 5,968 ns/iter (+/- 113) = 5490 MB/s
test bench::hard_1K ... bench: 4,650 ns/iter (+/- 33) = 220 MB/s
test bench::hard_1MB ... bench: 4,754,538 ns/iter (+/- 464,580) = 220 MB/s
test bench::hard_32 ... bench: 195 ns/iter (+/- 4) = 164 MB/s
test bench::hard_32K ... bench: 149,062 ns/iter (+/- 32,033) = 219 MB/s
test bench::literal ... bench: 19 ns/iter (+/- 0) = 2684 MB/s
test bench::match_class ... bench: 86 ns/iter (+/- 8) = 941 MB/s
test bench::match_class_in_range ... bench: 33 ns/iter (+/- 13) = 2454 MB/s
test bench::match_class_unicode ... bench: 778 ns/iter (+/- 22) = 206 MB/s
test bench::medium_1K ... bench: 1,259 ns/iter (+/- 852) = 813 MB/s
test bench::medium_1MB ... bench: 1,988,570 ns/iter (+/- 358,689) = 527 MB/s
test bench::medium_32 ... bench: 84 ns/iter (+/- 17) = 380 MB/s
test bench::medium_32K ... bench: 56,419 ns/iter (+/- 2,763) = 580 MB/s
test bench::no_exponential ... bench: 528 ns/iter (+/- 11) = 189 MB/s
test bench::not_literal ... bench: 286 ns/iter (+/- 18) = 178 MB/s
test bench::one_pass_long_prefix ... bench: 171 ns/iter (+/- 8) = 152 MB/s
test bench::one_pass_long_prefix_not ... bench: 172 ns/iter (+/- 3) = 151 MB/s
test bench::one_pass_short ... bench: 135 ns/iter (+/- 56) = 125 MB/s
test bench::one_pass_short_not ... bench: 131 ns/iter (+/- 4) = 129 MB/s
test bench::replace_all ... bench: 149 ns/iter (+/- 4)
test bench_dynamic_compile::compile_huge ... bench: 166,023 ns/iter (+/- 43,507)
test bench_dynamic_compile::compile_huge_bytes ... bench: 18,116,935 ns/iter (+/- 2,878,070)
test bench_dynamic_compile::compile_simple ... bench: 6,264 ns/iter (+/- 2,846)
test bench_dynamic_compile::compile_simple_bytes ... bench: 6,580 ns/iter (+/- 4,697)
test bench_dynamic_compile::compile_small ... bench: 8,849 ns/iter (+/- 3,545)
test bench_dynamic_compile::compile_small_bytes ... bench: 176,185 ns/iter (+/- 1,085)
test bench_dynamic_parse::parse_huge ... bench: 1,178 ns/iter (+/- 4)
test bench_dynamic_parse::parse_simple ... bench: 1,869 ns/iter (+/- 23)
test bench_dynamic_parse::parse_small ... bench: 2,404 ns/iter (+/- 16)
test bench_sherlock::before_holmes ... bench: 2,742,054 ns/iter (+/- 20,502) = 216 MB/s
test bench_sherlock::everything_greedy ... bench: 8,021,670 ns/iter (+/- 60,539) = 74 MB/s
test bench_sherlock::everything_greedy_nl ... bench: 5,382,096 ns/iter (+/- 30,057) = 110 MB/s
test bench_sherlock::holmes_cochar_watson ... bench: 263,488 ns/iter (+/- 1,814) = 2257 MB/s
test bench_sherlock::holmes_coword_watson ... bench: 1,324,363 ns/iter (+/- 4,877) = 449 MB/s
test bench_sherlock::letters ... bench: 55,982,985 ns/iter (+/- 889,539) = 10 MB/s
test bench_sherlock::letters_lower ... bench: 54,142,840 ns/iter (+/- 152,249) = 10 MB/s
test bench_sherlock::letters_upper ... bench: 4,469,064 ns/iter (+/- 9,059) = 133 MB/s
test bench_sherlock::line_boundary_sherlock_holmes ... bench: 2,686,922 ns/iter (+/- 3,264) = 221 MB/s
test bench_sherlock::name_alt1 ... bench: 40,892 ns/iter (+/- 415) = 14548 MB/s
test bench_sherlock::name_alt2 ... bench: 195,517 ns/iter (+/- 608) = 3042 MB/s
test bench_sherlock::name_alt3 ... bench: 1,247,929 ns/iter (+/- 1,901) = 476 MB/s
test bench_sherlock::name_alt3_nocase ... bench: 1,459,840 ns/iter (+/- 2,947) = 407 MB/s
test bench_sherlock::name_alt4 ... bench: 291,752 ns/iter (+/- 1,443) = 2039 MB/s
test bench_sherlock::name_alt4_nocase ... bench: 1,412,704 ns/iter (+/- 2,893) = 421 MB/s
test bench_sherlock::name_holmes ... bench: 49,981 ns/iter (+/- 415) = 11903 MB/s
test bench_sherlock::name_holmes_nocase ... bench: 1,192,022 ns/iter (+/- 4,914) = 499 MB/s
test bench_sherlock::name_sherlock ... bench: 33,944 ns/iter (+/- 212) = 17526 MB/s
test bench_sherlock::name_sherlock_holmes ... bench: 33,818 ns/iter (+/- 209) = 17592 MB/s
test bench_sherlock::name_sherlock_holmes_nocase ... bench: 1,215,495 ns/iter (+/- 4,072) = 489 MB/s
test bench_sherlock::name_sherlock_nocase ... bench: 1,212,883 ns/iter (+/- 3,059) = 490 MB/s
test bench_sherlock::name_whitespace ... bench: 59,191 ns/iter (+/- 415) = 10051 MB/s
test bench_sherlock::no_match_common ... bench: 561,862 ns/iter (+/- 2,604) = 1058 MB/s
test bench_sherlock::no_match_uncommon ... bench: 23,624 ns/iter (+/- 107) = 25183 MB/s
test bench_sherlock::quotes ... bench: 956,944 ns/iter (+/- 2,861) = 621 MB/s
test bench_sherlock::the_lower ... bench: 765,015 ns/iter (+/- 2,333) = 777 MB/s
test bench_sherlock::the_nocase ... bench: 1,712,224 ns/iter (+/- 6,976) = 347 MB/s
test bench_sherlock::the_upper ... bench: 53,084 ns/iter (+/- 213) = 11207 MB/s
test bench_sherlock::the_whitespace ... bench: 1,933,566 ns/iter (+/- 4,443) = 307 MB/s
test bench_sherlock::word_ending_n ... bench: 54,689,093 ns/iter (+/- 208,928) = 10 MB/s
test bench_sherlock::words ... bench: 18,363,997 ns/iter (+/- 70,178) = 32 MB/s
WARNING: benchmarks present in new but not in old: no_exponential, replace_all, sherlock::everything_greedy, sherlock::everything_greedy_nl, sherlock::holmes_coword_watson
name pcre-jit ns/iter rust-regex ns/iter diff ns/iter diff %
anchored_literal_long_match 87 (4,482 MB/s) 72 (5,416 MB/s) -15 -17.24%
anchored_literal_long_non_match 58 (6,724 MB/s) 60 (6,500 MB/s) 2 3.45%
anchored_literal_short_match 88 (295 MB/s) 72 (361 MB/s) -16 -18.18%
anchored_literal_short_non_match 83 (313 MB/s) 59 (440 MB/s) -24 -28.92%
easy0_1K 266 (3,849 MB/s) 213 (4,807 MB/s) -53 -19.92%
easy0_1MB 227,104 (4,617 MB/s) 255,327 (4,106 MB/s) 28,223 12.43%
easy0_32 77 (415 MB/s) 73 (438 MB/s) -4 -5.19%
easy0_32K 7,065 (4,638 MB/s) 5,421 (6,044 MB/s) -1,644 -23.27%
easy1_1K 712 (1,438 MB/s) 289 (3,543 MB/s) -423 -59.41%
easy1_1MB 753,854 (1,390 MB/s) 327,825 (3,198 MB/s) -426,029 -56.51%
easy1_32 72 (444 MB/s) 77 (415 MB/s) 5 6.94%
easy1_32K 23,500 (1,394 MB/s) 5,968 (5,490 MB/s) -17,532 -74.60%
hard_1K 32,101 (31 MB/s) 4,650 (220 MB/s) -27,451 -85.51%
hard_1MB 35,169,490 (29 MB/s) 4,754,538 (220 MB/s) -30,414,952 -86.48%
hard_32 86 (372 MB/s) 195 (164 MB/s) 109 126.74%
hard_32K 996,317 (32 MB/s) 149,062 (219 MB/s) -847,255 -85.04%
literal 129 (395 MB/s) 19 (2,684 MB/s) -110 -85.27%
match_class 176 (460 MB/s) 86 (941 MB/s) -90 -51.14%
match_class_in_range 174 (465 MB/s) 33 (2,454 MB/s) -141 -81.03%
match_class_unicode 512 (314 MB/s) 778 (206 MB/s) 266 51.95%
medium_1K 309 (3,313 MB/s) 1,259 (813 MB/s) 950 307.44%
medium_1MB 238,785 (4,391 MB/s) 1,988,570 (527 MB/s) 1,749,785 732.79%
medium_32 60 (533 MB/s) 84 (380 MB/s) 24 40.00%
medium_32K 7,519 (4,358 MB/s) 56,419 (580 MB/s) 48,900 650.35%
not_literal 272 (187 MB/s) 286 (178 MB/s) 14 5.15%
one_pass_long_prefix 87 (298 MB/s) 171 (152 MB/s) 84 96.55%
one_pass_long_prefix_not 87 (298 MB/s) 172 (151 MB/s) 85 97.70%
one_pass_short 115 (147 MB/s) 135 (125 MB/s) 20 17.39%
one_pass_short_not 121 (140 MB/s) 131 (129 MB/s) 10 8.26%
sherlock::before_holmes 14,381,025 (41 MB/s) 2,742,054 (216 MB/s) -11,638,971 -80.93%
sherlock::holmes_cochar_watson 548,438 (1,084 MB/s) 263,488 (2,257 MB/s) -284,950 -51.96%
sherlock::letters 28,335,749 (20 MB/s) 55,982,985 (10 MB/s) 27,647,236 97.57%
sherlock::letters_lower 27,340,223 (21 MB/s) 54,142,840 (10 MB/s) 26,802,617 98.03%
sherlock::letters_upper 3,701,402 (160 MB/s) 4,469,064 (133 MB/s) 767,662 20.74%
sherlock::line_boundary_sherlock_holmes 194,056 (3,065 MB/s) 2,686,922 (221 MB/s) 2,492,866 1284.61%
sherlock::name_alt1 453,855 (1,310 MB/s) 40,892 (14,548 MB/s) -412,963 -90.99%
sherlock::name_alt2 493,558 (1,205 MB/s) 195,517 (3,042 MB/s) -298,041 -60.39%
sherlock::name_alt3 997,529 (596 MB/s) 1,247,929 (476 MB/s) 250,400 25.10%
sherlock::name_alt3_nocase 3,362,401 (176 MB/s) 1,459,840 (407 MB/s) -1,902,561 -56.58%
sherlock::name_alt4 940,085 (632 MB/s) 291,752 (2,039 MB/s) -648,333 -68.97%
sherlock::name_alt4_nocase 1,787,449 (332 MB/s) 1,412,704 (421 MB/s) -374,745 -20.97%
sherlock::name_holmes 399,831 (1,487 MB/s) 49,981 (11,903 MB/s) -349,850 -87.50%
sherlock::name_holmes_nocase 493,125 (1,206 MB/s) 1,192,022 (499 MB/s) 698,897 141.73%
sherlock::name_sherlock 268,481 (2,215 MB/s) 33,944 (17,526 MB/s) -234,537 -87.36%
sherlock::name_sherlock_holmes 196,745 (3,023 MB/s) 33,818 (17,592 MB/s) -162,927 -82.81%
sherlock::name_sherlock_holmes_nocase 1,328,071 (447 MB/s) 1,215,495 (489 MB/s) -112,576 -8.48%
sherlock::name_sherlock_nocase 1,268,441 (469 MB/s) 1,212,883 (490 MB/s) -55,558 -4.38%
sherlock::name_whitespace 267,976 (2,220 MB/s) 59,191 (10,051 MB/s) -208,785 -77.91%
sherlock::no_match_common 596,935 (996 MB/s) 561,862 (1,058 MB/s) -35,073 -5.88%
sherlock::no_match_uncommon 585,266 (1,016 MB/s) 23,624 (25,183 MB/s) -561,642 -95.96%
sherlock::quotes 1,216,368 (489 MB/s) 956,944 (621 MB/s) -259,424 -21.33%
sherlock::the_lower 1,214,538 (489 MB/s) 765,015 (777 MB/s) -449,523 -37.01%
sherlock::the_nocase 1,279,797 (464 MB/s) 1,712,224 (347 MB/s) 432,427 33.79%
sherlock::the_upper 773,682 (768 MB/s) 53,084 (11,207 MB/s) -720,598 -93.14%
sherlock::the_whitespace 1,367,971 (434 MB/s) 1,933,566 (307 MB/s) 565,595 41.35%
sherlock::word_ending_n 12,765,991 (46 MB/s) 54,689,093 (10 MB/s) 41,923,102 328.40%
sherlock::words 10,737,821 (55 MB/s) 18,363,997 (32 MB/s) 7,626,176 71.02%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment