Skip to content

Instantly share code, notes, and snippets.

@alexcrichton
Created October 18, 2017 18:01
Show Gist options
  • Save alexcrichton/02f39400c0286af4a0c4419b1ca41608 to your computer and use it in GitHub Desktop.
Save alexcrichton/02f39400c0286af4a0c4419b1ca41608 to your computer and use it in GitHub Desktop.
name before ns/iter after ns/iter diff ns/iter diff % speedup
misc::anchored_literal_long_match 24 (16250 MB/s) 28 (13928 MB/s) 4 16.67% x 0.86
misc::anchored_literal_long_non_match 27 (14444 MB/s) 21 (18571 MB/s) -6 -22.22% x 1.29
misc::anchored_literal_short_match 22 (1181 MB/s) 28 (928 MB/s) 6 27.27% x 0.79
misc::anchored_literal_short_non_match 27 (962 MB/s) 21 (1238 MB/s) -6 -22.22% x 1.29
misc::easy0_1K 16 (65687 MB/s) 17 (61823 MB/s) 1 6.25% x 0.94
misc::easy0_32 16 (3687 MB/s) 17 (3470 MB/s) 1 6.25% x 0.94
misc::easy0_32K 16 (2049687 MB/s) 17 (1929117 MB/s) 1 6.25% x 0.94
misc::easy1_1K 48 (21750 MB/s) 55 (18981 MB/s) 7 14.58% x 0.87
misc::easy1_1MB 50 (20971920 MB/s) 57 (18396421 MB/s) 7 14.00% x 0.88
misc::easy1_32 50 (1040 MB/s) 55 (945 MB/s) 5 10.00% x 0.91
misc::easy1_32K 48 (683083 MB/s) 58 (565310 MB/s) 10 20.83% x 0.83
misc::hard_1K 61 (17229 MB/s) 67 (15686 MB/s) 6 9.84% x 0.91
misc::hard_1MB 65 (16132353 MB/s) 70 (14980042 MB/s) 5 7.69% x 0.93
misc::hard_32 61 (967 MB/s) 67 (880 MB/s) 6 9.84% x 0.91
misc::hard_32K 61 (537622 MB/s) 69 (475289 MB/s) 8 13.11% x 0.88
misc::match_class 63 (1285 MB/s) 104 (778 MB/s) 41 65.08% x 0.61
misc::match_class_in_range 26 (3115 MB/s) 32 (2531 MB/s) 6 23.08% x 0.81
misc::medium_1K 16 (65750 MB/s) 18 (58444 MB/s) 2 12.50% x 0.89
misc::medium_1MB 20 (52430200 MB/s) 21 (49933523 MB/s) 1 5.00% x 0.95
misc::medium_32 17 (3529 MB/s) 18 (3333 MB/s) 1 5.88% x 0.94
misc::medium_32K 16 (2049750 MB/s) 18 (1822000 MB/s) 2 12.50% x 0.89
misc::one_pass_long_prefix 65 (400 MB/s) 72 (361 MB/s) 7 10.77% x 0.90
misc::one_pass_long_prefix_not 65 (400 MB/s) 70 (371 MB/s) 5 7.69% x 0.93
misc::one_pass_short 74 (229 MB/s) 54 (314 MB/s) -20 -27.03% x 1.37
misc::one_pass_short_not 51 (333 MB/s) 55 (309 MB/s) 4 7.84% x 0.93
misc::replace_all 165 185 20 12.12% x 0.89
misc::reverse_suffix_no_quadratic 4,198 (1905 MB/s) 8,321 (961 MB/s) 4,123 98.21% x 0.50
regexdna::find_new_lines 15,390,517 (330 MB/s) 16,600,685 (306 MB/s) 1,210,168 7.86% x 0.93
regexdna::subst5 877,039 (5796 MB/s) 832,457 (6106 MB/s) -44,582 -5.08% x 1.05
regexdna::variant1 12,273,559 (414 MB/s) 14,543,093 (349 MB/s) 2,269,534 18.49% x 0.84
regexdna::variant3 11,955,471 (425 MB/s) 13,996,397 (363 MB/s) 2,040,926 17.07% x 0.85
regexdna::variant4 12,280,724 (413 MB/s) 14,529,837 (349 MB/s) 2,249,113 18.31% x 0.85
regexdna::variant5 12,299,113 (413 MB/s) 14,569,972 (348 MB/s) 2,270,859 18.46% x 0.84
regexdna::variant6 12,189,354 (417 MB/s) 14,391,452 (353 MB/s) 2,202,098 18.07% x 0.85
regexdna::variant7 11,992,341 (423 MB/s) 14,066,365 (361 MB/s) 2,074,024 17.29% x 0.85
regexdna::variant8 11,194,481 (454 MB/s) 12,796,902 (397 MB/s) 1,602,421 14.31% x 0.87
sherlock::everything_greedy 2,244,904 (265 MB/s) 2,857,716 (208 MB/s) 612,812 27.30% x 0.79
sherlock::everything_greedy_nl 819,811 (725 MB/s) 1,479,732 (402 MB/s) 659,921 80.50% x 0.55
sherlock::holmes_cochar_watson 195,644 (3040 MB/s) 226,467 (2627 MB/s) 30,823 15.75% x 0.86
sherlock::ing_suffix 442,357 (1344 MB/s) 464,584 (1280 MB/s) 22,227 5.02% x 0.95
sherlock::letters 24,802,638 (23 MB/s) 26,347,052 (22 MB/s) 1,544,414 6.23% x 0.94
sherlock::letters_lower 24,222,245 (24 MB/s) 25,704,535 (23 MB/s) 1,482,290 6.12% x 0.94
sherlock::name_alt2 160,736 (3701 MB/s) 191,907 (3100 MB/s) 31,171 19.39% x 0.84
sherlock::name_alt4 199,178 (2986 MB/s) 232,956 (2553 MB/s) 33,778 16.96% x 0.86
sherlock::name_holmes_nocase 896,086 (663 MB/s) 1,293,858 (459 MB/s) 397,772 44.39% x 0.69
sherlock::quotes 523,676 (1136 MB/s) 557,940 (1066 MB/s) 34,264 6.54% x 0.94
sherlock::repeated_class_negation 81,733,379 (7 MB/s) 89,313,439 (6 MB/s) 7,580,060 9.27% x 0.92
sherlock::the_nocase 1,284,861 (463 MB/s) 1,794,818 (331 MB/s) 509,957 39.69% x 0.72
sherlock::words 9,255,637 (64 MB/s) 9,766,358 (60 MB/s) 510,721 5.52% x 0.95
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment