Skip to content

Commit df48ddc

Browse files
committed
update benchmarks
1 parent 28364ce commit df48ddc

File tree

12 files changed

+1063
-2
lines changed

12 files changed

+1063
-2
lines changed

bench/log/05/onig

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
2+
running 94 tests
3+
test misc::anchored_literal_long_match ... bench: 158 ns/iter (+/- 4) = 2468 MB/s
4+
test misc::anchored_literal_long_non_match ... bench: 495 ns/iter (+/- 7) = 787 MB/s
5+
test misc::anchored_literal_short_match ... bench: 160 ns/iter (+/- 3) = 162 MB/s
6+
test misc::anchored_literal_short_non_match ... bench: 44 ns/iter (+/- 4) = 590 MB/s
7+
test misc::easy0_1K ... bench: 315 ns/iter (+/- 15) = 3336 MB/s
8+
test misc::easy0_1MB ... bench: 136,864 ns/iter (+/- 5,984) = 7661 MB/s
9+
test misc::easy0_32 ... bench: 163 ns/iter (+/- 11) = 361 MB/s
10+
test misc::easy0_32K ... bench: 4,562 ns/iter (+/- 255) = 7188 MB/s
11+
test misc::easy1_1K ... bench: 3,947 ns/iter (+/- 199) = 264 MB/s
12+
test misc::easy1_1MB ... bench: 3,920,564 ns/iter (+/- 122,902) = 267 MB/s
13+
test misc::easy1_32 ... bench: 321 ns/iter (+/- 20) = 161 MB/s
14+
test misc::easy1_32K ... bench: 121,449 ns/iter (+/- 4,899) = 269 MB/s
15+
test misc::hard_1K ... bench: 125,960 ns/iter (+/- 7,255) = 8 MB/s
16+
test misc::hard_1MB ... bench: 134,129,947 ns/iter (+/- 4,797,942) = 7 MB/s
17+
test misc::hard_32 ... bench: 4,044 ns/iter (+/- 227) = 14 MB/s
18+
test misc::hard_32K ... bench: 4,183,228 ns/iter (+/- 127,808) = 7 MB/s
19+
test misc::literal ... bench: 331 ns/iter (+/- 21) = 154 MB/s
20+
test misc::long_needle1 ... bench: 5,715,563 ns/iter (+/- 250,535) = 17 MB/s
21+
test misc::long_needle2 ... bench: 5,779,968 ns/iter (+/- 195,784) = 17 MB/s
22+
test misc::match_class ... bench: 431 ns/iter (+/- 5) = 187 MB/s
23+
test misc::match_class_in_range ... bench: 427 ns/iter (+/- 27) = 189 MB/s
24+
test misc::match_class_unicode ... bench: 1,946 ns/iter (+/- 88) = 82 MB/s
25+
test misc::medium_1K ... bench: 325 ns/iter (+/- 23) = 3236 MB/s
26+
test misc::medium_1MB ... bench: 138,022 ns/iter (+/- 5,142) = 7597 MB/s
27+
test misc::medium_32 ... bench: 182 ns/iter (+/- 7) = 329 MB/s
28+
test misc::medium_32K ... bench: 4,511 ns/iter (+/- 190) = 7270 MB/s
29+
test misc::not_literal ... bench: 436 ns/iter (+/- 25) = 116 MB/s
30+
test misc::one_pass_long_prefix ... bench: 168 ns/iter (+/- 6) = 154 MB/s
31+
test misc::one_pass_long_prefix_not ... bench: 176 ns/iter (+/- 7) = 147 MB/s
32+
test misc::one_pass_short ... bench: 325 ns/iter (+/- 16) = 52 MB/s
33+
test misc::one_pass_short_not ... bench: 322 ns/iter (+/- 21) = 52 MB/s
34+
test misc::reallyhard2_1K ... bench: 289,956 ns/iter (+/- 16,350) = 3 MB/s
35+
test misc::reallyhard_1K ... bench: 126,089 ns/iter (+/- 5,350) = 8 MB/s
36+
test misc::reallyhard_1MB ... bench: 133,197,312 ns/iter (+/- 3,057,491) = 7 MB/s
37+
test misc::reallyhard_32 ... bench: 4,060 ns/iter (+/- 11) = 14 MB/s
38+
test misc::reallyhard_32K ... bench: 4,215,469 ns/iter (+/- 200,526) = 7 MB/s
39+
test misc::reverse_suffix_no_quadratic ... bench: 27,622 ns/iter (+/- 778) = 289 MB/s
40+
test regexdna::find_new_lines ... bench: 30,503,604 ns/iter (+/- 1,120,697) = 166 MB/s
41+
test regexdna::subst1 ... bench: 23,276,552 ns/iter (+/- 1,019,308) = 218 MB/s
42+
test regexdna::subst10 ... bench: 23,199,415 ns/iter (+/- 790,938) = 219 MB/s
43+
test regexdna::subst11 ... bench: 23,138,469 ns/iter (+/- 884,700) = 219 MB/s
44+
test regexdna::subst2 ... bench: 23,076,376 ns/iter (+/- 644,391) = 220 MB/s
45+
test regexdna::subst3 ... bench: 23,115,770 ns/iter (+/- 737,666) = 219 MB/s
46+
test regexdna::subst4 ... bench: 23,093,288 ns/iter (+/- 1,003,519) = 220 MB/s
47+
test regexdna::subst5 ... bench: 23,618,534 ns/iter (+/- 773,260) = 215 MB/s
48+
test regexdna::subst6 ... bench: 23,301,581 ns/iter (+/- 679,681) = 218 MB/s
49+
test regexdna::subst7 ... bench: 23,371,339 ns/iter (+/- 714,433) = 217 MB/s
50+
test regexdna::subst8 ... bench: 23,187,513 ns/iter (+/- 863,031) = 219 MB/s
51+
test regexdna::subst9 ... bench: 23,143,027 ns/iter (+/- 890,422) = 219 MB/s
52+
test regexdna::variant1 ... bench: 104,906,982 ns/iter (+/- 3,391,942) = 48 MB/s
53+
test regexdna::variant2 ... bench: 118,326,728 ns/iter (+/- 3,378,748) = 42 MB/s
54+
test regexdna::variant3 ... bench: 109,348,596 ns/iter (+/- 3,647,056) = 46 MB/s
55+
test regexdna::variant4 ... bench: 104,574,675 ns/iter (+/- 3,236,753) = 48 MB/s
56+
test regexdna::variant5 ... bench: 102,968,132 ns/iter (+/- 2,792,754) = 49 MB/s
57+
test regexdna::variant6 ... bench: 103,783,112 ns/iter (+/- 2,851,581) = 48 MB/s
58+
test regexdna::variant7 ... bench: 103,939,805 ns/iter (+/- 3,118,277) = 48 MB/s
59+
test regexdna::variant8 ... bench: 109,722,594 ns/iter (+/- 3,739,958) = 46 MB/s
60+
test regexdna::variant9 ... bench: 128,702,724 ns/iter (+/- 3,739,103) = 39 MB/s
61+
test sherlock::before_after_holmes ... bench: 39,219,739 ns/iter (+/- 1,622,425) = 15 MB/s
62+
test sherlock::before_holmes ... bench: 37,454,934 ns/iter (+/- 1,055,140) = 15 MB/s
63+
test sherlock::everything_greedy ... bench: 7,341,629 ns/iter (+/- 241,072) = 81 MB/s
64+
test sherlock::holmes_cochar_watson ... bench: 2,298,534 ns/iter (+/- 94,224) = 258 MB/s
65+
test sherlock::ing_suffix ... bench: 18,533,670 ns/iter (+/- 505,855) = 32 MB/s
66+
test sherlock::ing_suffix_limited_space ... bench: 2,419,034 ns/iter (+/- 124,616) = 245 MB/s
67+
test sherlock::letters ... bench: 61,910,045 ns/iter (+/- 2,122,755) = 9 MB/s
68+
test sherlock::letters_lower ... bench: 60,831,022 ns/iter (+/- 2,559,720) = 9 MB/s
69+
test sherlock::letters_upper ... bench: 10,747,265 ns/iter (+/- 761,147) = 55 MB/s
70+
test sherlock::line_boundary_sherlock_holmes ... bench: 215,376 ns/iter (+/- 13,622) = 2762 MB/s
71+
test sherlock::name_alt1 ... bench: 2,282,320 ns/iter (+/- 154,104) = 260 MB/s
72+
test sherlock::name_alt2 ... bench: 2,206,087 ns/iter (+/- 158,376) = 269 MB/s
73+
test sherlock::name_alt3 ... bench: 2,771,932 ns/iter (+/- 181,216) = 214 MB/s
74+
test sherlock::name_alt3_nocase ... bench: 19,198,056 ns/iter (+/- 816,668) = 30 MB/s
75+
test sherlock::name_alt4 ... bench: 2,254,798 ns/iter (+/- 135,379) = 263 MB/s
76+
test sherlock::name_alt4_nocase ... bench: 5,734,254 ns/iter (+/- 411,596) = 103 MB/s
77+
test sherlock::name_alt5 ... bench: 2,276,779 ns/iter (+/- 172,557) = 261 MB/s
78+
test sherlock::name_alt5_nocase ... bench: 7,314,318 ns/iter (+/- 377,963) = 81 MB/s
79+
test sherlock::name_holmes ... bench: 477,888 ns/iter (+/- 37,472) = 1244 MB/s
80+
test sherlock::name_holmes_nocase ... bench: 3,487,005 ns/iter (+/- 278,896) = 170 MB/s
81+
test sherlock::name_sherlock ... bench: 295,313 ns/iter (+/- 16,739) = 2014 MB/s
82+
test sherlock::name_sherlock_holmes ... bench: 216,522 ns/iter (+/- 15,594) = 2747 MB/s
83+
test sherlock::name_sherlock_holmes_nocase ... bench: 3,480,703 ns/iter (+/- 272,332) = 170 MB/s
84+
test sherlock::name_sherlock_nocase ... bench: 3,511,444 ns/iter (+/- 283,013) = 169 MB/s
85+
test sherlock::name_whitespace ... bench: 304,043 ns/iter (+/- 19,186) = 1956 MB/s
86+
test sherlock::no_match_common ... bench: 632,615 ns/iter (+/- 44,676) = 940 MB/s
87+
test sherlock::no_match_really_common ... bench: 727,565 ns/iter (+/- 54,169) = 817 MB/s
88+
test sherlock::no_match_uncommon ... bench: 624,061 ns/iter (+/- 37,791) = 953 MB/s
89+
test sherlock::quotes ... bench: 3,776,688 ns/iter (+/- 186,393) = 157 MB/s
90+
test sherlock::repeated_class_negation ... bench: 34,354,179 ns/iter (+/- 1,534,267) = 17 MB/s
91+
test sherlock::the_lower ... bench: 1,965,787 ns/iter (+/- 137,099) = 302 MB/s
92+
test sherlock::the_nocase ... bench: 4,853,843 ns/iter (+/- 259,890) = 122 MB/s
93+
test sherlock::the_upper ... bench: 949,071 ns/iter (+/- 66,016) = 626 MB/s
94+
test sherlock::the_whitespace ... bench: 2,173,683 ns/iter (+/- 142,384) = 273 MB/s
95+
test sherlock::word_ending_n ... bench: 19,711,057 ns/iter (+/- 942,152) = 30 MB/s
96+
test sherlock::words ... bench: 21,979,387 ns/iter (+/- 1,250,588) = 27 MB/s
97+
98+
test result: ok. 0 passed; 0 failed; 0 ignored; 94 measured
99+

bench/log/05/onig-vs-rust

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name onig ns/iter rust ns/iter diff ns/iter diff %
2+
misc::anchored_literal_long_match 158 (2468 MB/s) 24 (16250 MB/s) -134 -84.81%
3+
misc::anchored_literal_long_non_match 495 (787 MB/s) 27 (14444 MB/s) -468 -94.55%
4+
misc::anchored_literal_short_match 160 (162 MB/s) 22 (1181 MB/s) -138 -86.25%
5+
misc::anchored_literal_short_non_match 44 (590 MB/s) 24 (1083 MB/s) -20 -45.45%
6+
misc::easy0_1K 315 (3336 MB/s) 16 (65687 MB/s) -299 -94.92%
7+
misc::easy0_1MB 136,864 (7661 MB/s) 20 (52430150 MB/s) -136,844 -99.99%
8+
misc::easy0_32 163 (361 MB/s) 16 (3687 MB/s) -147 -90.18%
9+
misc::easy0_32K 4,562 (7188 MB/s) 16 (2049687 MB/s) -4,546 -99.65%
10+
misc::easy1_1K 3,947 (264 MB/s) 48 (21750 MB/s) -3,899 -98.78%
11+
misc::easy1_1MB 3,920,564 (267 MB/s) 48 (21845750 MB/s) -3,920,516 -100.00%
12+
misc::easy1_32 321 (161 MB/s) 46 (1130 MB/s) -275 -85.67%
13+
misc::easy1_32K 121,449 (269 MB/s) 47 (697617 MB/s) -121,402 -99.96%
14+
misc::hard_1K 125,960 (8 MB/s) 58 (18120 MB/s) -125,902 -99.95%
15+
misc::hard_1MB 134,129,947 (7 MB/s) 61 (17190213 MB/s) -134,129,886 -100.00%
16+
misc::hard_32 4,044 (14 MB/s) 58 (1017 MB/s) -3,986 -98.57%
17+
misc::hard_32K 4,183,228 (7 MB/s) 56 (585625 MB/s) -4,183,172 -100.00%
18+
misc::literal 331 (154 MB/s) 16 (3187 MB/s) -315 -95.17%
19+
misc::long_needle1 5,715,563 (17 MB/s) 2,226 (44924 MB/s) -5,713,337 -99.96%
20+
misc::long_needle2 5,779,968 (17 MB/s) 576,997 (173 MB/s) -5,202,971 -90.02%
21+
misc::match_class 431 (187 MB/s) 65 (1246 MB/s) -366 -84.92%
22+
misc::match_class_in_range 427 (189 MB/s) 27 (3000 MB/s) -400 -93.68%
23+
misc::match_class_unicode 1,946 (82 MB/s) 283 (568 MB/s) -1,663 -85.46%
24+
misc::medium_1K 325 (3236 MB/s) 16 (65750 MB/s) -309 -95.08%
25+
misc::medium_1MB 138,022 (7597 MB/s) 21 (49933523 MB/s) -138,001 -99.98%
26+
misc::medium_32 182 (329 MB/s) 17 (3529 MB/s) -165 -90.66%
27+
misc::medium_32K 4,511 (7270 MB/s) 17 (1929176 MB/s) -4,494 -99.62%
28+
misc::not_literal 436 (116 MB/s) 105 (485 MB/s) -331 -75.92%
29+
misc::one_pass_long_prefix 168 (154 MB/s) 68 (382 MB/s) -100 -59.52%
30+
misc::one_pass_long_prefix_not 176 (147 MB/s) 58 (448 MB/s) -118 -67.05%
31+
misc::one_pass_short 325 (52 MB/s) 45 (377 MB/s) -280 -86.15%
32+
misc::one_pass_short_not 322 (52 MB/s) 50 (340 MB/s) -272 -84.47%
33+
misc::reallyhard2_1K 289,956 (3 MB/s) 83 (12530 MB/s) -289,873 -99.97%
34+
misc::reallyhard_1K 126,089 (8 MB/s) 1,822 (576 MB/s) -124,267 -98.55%
35+
misc::reallyhard_1MB 133,197,312 (7 MB/s) 1,768,327 (592 MB/s) -131,428,985 -98.67%
36+
misc::reallyhard_32 4,060 (14 MB/s) 121 (487 MB/s) -3,939 -97.02%
37+
misc::reallyhard_32K 4,215,469 (7 MB/s) 56,375 (581 MB/s) -4,159,094 -98.66%
38+
misc::reverse_suffix_no_quadratic 27,622 (289 MB/s) 5,803 (1378 MB/s) -21,819 -78.99%
39+
regexdna::find_new_lines 30,503,604 (166 MB/s) 14,818,233 (343 MB/s) -15,685,371 -51.42%
40+
regexdna::subst1 23,276,552 (218 MB/s) 896,790 (5668 MB/s) -22,379,762 -96.15%
41+
regexdna::subst10 23,199,415 (219 MB/s) 957,325 (5310 MB/s) -22,242,090 -95.87%
42+
regexdna::subst11 23,138,469 (219 MB/s) 917,248 (5542 MB/s) -22,221,221 -96.04%
43+
regexdna::subst2 23,076,376 (220 MB/s) 892,129 (5698 MB/s) -22,184,247 -96.13%
44+
regexdna::subst3 23,115,770 (219 MB/s) 929,250 (5470 MB/s) -22,186,520 -95.98%
45+
regexdna::subst4 23,093,288 (220 MB/s) 872,581 (5825 MB/s) -22,220,707 -96.22%
46+
regexdna::subst5 23,618,534 (215 MB/s) 875,804 (5804 MB/s) -22,742,730 -96.29%
47+
regexdna::subst6 23,301,581 (218 MB/s) 884,639 (5746 MB/s) -22,416,942 -96.20%
48+
regexdna::subst7 23,371,339 (217 MB/s) 872,791 (5824 MB/s) -22,498,548 -96.27%
49+
regexdna::subst8 23,187,513 (219 MB/s) 873,833 (5817 MB/s) -22,313,680 -96.23%
50+
regexdna::subst9 23,143,027 (219 MB/s) 886,744 (5732 MB/s) -22,256,283 -96.17%
51+
regexdna::variant1 104,906,982 (48 MB/s) 3,699,267 (1374 MB/s) -101,207,715 -96.47%
52+
regexdna::variant2 118,326,728 (42 MB/s) 6,760,952 (751 MB/s) -111,565,776 -94.29%
53+
regexdna::variant3 109,348,596 (46 MB/s) 8,030,646 (633 MB/s) -101,317,950 -92.66%
54+
regexdna::variant4 104,574,675 (48 MB/s) 8,077,290 (629 MB/s) -96,497,385 -92.28%
55+
regexdna::variant5 102,968,132 (49 MB/s) 6,787,242 (748 MB/s) -96,180,890 -93.41%
56+
regexdna::variant6 103,783,112 (48 MB/s) 6,577,777 (772 MB/s) -97,205,335 -93.66%
57+
regexdna::variant7 103,939,805 (48 MB/s) 6,705,580 (758 MB/s) -97,234,225 -93.55%
58+
regexdna::variant8 109,722,594 (46 MB/s) 6,818,785 (745 MB/s) -102,903,809 -93.79%
59+
regexdna::variant9 128,702,724 (39 MB/s) 6,821,453 (745 MB/s) -121,881,271 -94.70%
60+
sherlock::before_after_holmes 39,219,739 (15 MB/s) 1,029,866 (577 MB/s) -38,189,873 -97.37%
61+
sherlock::before_holmes 37,454,934 (15 MB/s) 76,633 (7763 MB/s) -37,378,301 -99.80%
62+
sherlock::everything_greedy 7,341,629 (81 MB/s) 2,375,079 (250 MB/s) -4,966,550 -67.65%
63+
sherlock::holmes_cochar_watson 2,298,534 (258 MB/s) 144,725 (4110 MB/s) -2,153,809 -93.70%
64+
sherlock::ing_suffix 18,533,670 (32 MB/s) 436,202 (1363 MB/s) -18,097,468 -97.65%
65+
sherlock::ing_suffix_limited_space 2,419,034 (245 MB/s) 1,182,943 (502 MB/s) -1,236,091 -51.10%
66+
sherlock::letters 61,910,045 (9 MB/s) 24,390,452 (24 MB/s) -37,519,593 -60.60%
67+
sherlock::letters_lower 60,831,022 (9 MB/s) 23,784,108 (25 MB/s) -37,046,914 -60.90%
68+
sherlock::letters_upper 10,747,265 (55 MB/s) 1,993,838 (298 MB/s) -8,753,427 -81.45%
69+
sherlock::line_boundary_sherlock_holmes 215,376 (2762 MB/s) 999,414 (595 MB/s) 784,038 364.03%
70+
sherlock::name_alt1 2,282,320 (260 MB/s) 34,298 (17345 MB/s) -2,248,022 -98.50%
71+
sherlock::name_alt2 2,206,087 (269 MB/s) 124,226 (4789 MB/s) -2,081,861 -94.37%
72+
sherlock::name_alt3 2,771,932 (214 MB/s) 137,742 (4319 MB/s) -2,634,190 -95.03%
73+
sherlock::name_alt3_nocase 19,198,056 (30 MB/s) 1,293,763 (459 MB/s) -17,904,293 -93.26%
74+
sherlock::name_alt4 2,254,798 (263 MB/s) 164,900 (3607 MB/s) -2,089,898 -92.69%
75+
sherlock::name_alt4_nocase 5,734,254 (103 MB/s) 235,023 (2531 MB/s) -5,499,231 -95.90%
76+
sherlock::name_alt5 2,276,779 (261 MB/s) 127,928 (4650 MB/s) -2,148,851 -94.38%
77+
sherlock::name_alt5_nocase 7,314,318 (81 MB/s) 659,591 (901 MB/s) -6,654,727 -90.98%
78+
sherlock::name_holmes 477,888 (1244 MB/s) 40,902 (14545 MB/s) -436,986 -91.44%
79+
sherlock::name_holmes_nocase 3,487,005 (170 MB/s) 198,658 (2994 MB/s) -3,288,347 -94.30%
80+
sherlock::name_sherlock 295,313 (2014 MB/s) 68,924 (8631 MB/s) -226,389 -76.66%
81+
sherlock::name_sherlock_holmes 216,522 (2747 MB/s) 31,640 (18803 MB/s) -184,882 -85.39%
82+
sherlock::name_sherlock_holmes_nocase 3,480,703 (170 MB/s) 173,522 (3428 MB/s) -3,307,181 -95.01%
83+
sherlock::name_sherlock_nocase 3,511,444 (169 MB/s) 170,888 (3481 MB/s) -3,340,556 -95.13%
84+
sherlock::name_whitespace 304,043 (1956 MB/s) 84,314 (7056 MB/s) -219,729 -72.27%
85+
sherlock::no_match_common 632,615 (940 MB/s) 20,727 (28703 MB/s) -611,888 -96.72%
86+
sherlock::no_match_really_common 727,565 (817 MB/s) 381,476 (1559 MB/s) -346,089 -47.57%
87+
sherlock::no_match_uncommon 624,061 (953 MB/s) 20,786 (28621 MB/s) -603,275 -96.67%
88+
sherlock::quotes 3,776,688 (157 MB/s) 531,487 (1119 MB/s) -3,245,201 -85.93%
89+
sherlock::repeated_class_negation 34,354,179 (17 MB/s) 85,881,944 (6 MB/s) 51,527,765 149.99%
90+
sherlock::the_lower 1,965,787 (302 MB/s) 654,110 (909 MB/s) -1,311,677 -66.73%
91+
sherlock::the_nocase 4,853,843 (122 MB/s) 474,456 (1253 MB/s) -4,379,387 -90.23%
92+
sherlock::the_upper 949,071 (626 MB/s) 43,746 (13599 MB/s) -905,325 -95.39%
93+
sherlock::the_whitespace 2,173,683 (273 MB/s) 1,181,974 (503 MB/s) -991,709 -45.62%
94+
sherlock::word_ending_n 19,711,057 (30 MB/s) 1,925,578 (308 MB/s) -17,785,479 -90.23%
95+
sherlock::words 21,979,387 (27 MB/s) 9,697,201 (61 MB/s) -12,282,186 -55.88%

0 commit comments

Comments
 (0)