Skip to content

Instantly share code, notes, and snippets.

@Noratrieb
Last active July 29, 2022 12:37
Show Gist options
  • Save Noratrieb/9a0751fb9fd1044a30ab55cef9a7d335 to your computer and use it in GitHub Desktop.
Save Noratrieb/9a0751fb9fd1044a30ab55cef9a7d335 to your computer and use it in GitHub Desktop.
box noalias benchmarks

regex-syntax

noalias=yes

test parse_huge    ... bench:       2,206 ns/iter (+/- 359)
test parse_medium1 ... bench:       6,834 ns/iter (+/- 282)
test parse_medium2 ... bench:       7,173 ns/iter (+/- 207)
test parse_medium3 ... bench:      21,044 ns/iter (+/- 725)
test parse_simple1 ... bench:       1,888 ns/iter (+/- 33)
test parse_simple2 ... bench:       3,732 ns/iter (+/- 162)
test parse_small1  ... bench:       3,985 ns/iter (+/- 170)

noalias=no

test parse_huge    ... bench:       2,247 ns/iter (+/- 103)
test parse_medium1 ... bench:       6,872 ns/iter (+/- 344)
test parse_medium2 ... bench:       7,144 ns/iter (+/- 209)
test parse_medium3 ... bench:      20,874 ns/iter (+/- 876)
test parse_simple1 ... bench:       1,859 ns/iter (+/- 72)
test parse_simple2 ... bench:       3,727 ns/iter (+/- 201)
test parse_small1  ... bench:       3,916 ns/iter (+/- 143)

tokio

noalias=yes (run 1)

running 4 tests
test async_read_buf      ... bench:  43,212,932 ns/iter (+/- 5,514,836)
test async_read_codec    ... bench:  43,403,105 ns/iter (+/- 5,479,293)
test async_read_std_file ... bench:     342,982 ns/iter (+/- 10,885)
test sync_read           ... bench:     224,519 ns/iter (+/- 8,219)
test chained_spawn ... bench:     181,985 ns/iter (+/- 14,582)
test ping_pong     ... bench:     771,192 ns/iter (+/- 489,656)
test spawn_many    ... bench:   5,642,962 ns/iter (+/- 1,145,960)
test yield_many    ... bench:   5,320,347 ns/iter (+/- 1,623,291)
test many_signals ... bench:      11,779 ns/iter (+/- 646)
test basic_scheduler_spawn      ... bench:         414 ns/iter (+/- 18)
test basic_scheduler_spawn10    ... bench:       2,326 ns/iter (+/- 75)
test threaded_scheduler_spawn   ... bench:      42,982 ns/iter (+/- 5,676)
test threaded_scheduler_spawn10 ... bench:      44,239 ns/iter (+/- 7,034)
test contention_bounded      ... bench:   1,109,093 ns/iter (+/- 63,072)
test contention_bounded_full ... bench:   1,513,916 ns/iter (+/- 354,113)
test contention_unbounded    ... bench:     711,348 ns/iter (+/- 235,013)
test create_100_000_medium   ... bench:         146 ns/iter (+/- 6)
test create_100_medium       ... bench:         144 ns/iter (+/- 2)
test create_1_medium         ... bench:         144 ns/iter (+/- 3)
test send_large              ... bench:      16,987 ns/iter (+/- 504)
test send_medium             ... bench:         539 ns/iter (+/- 19)
test uncontented_bounded     ... bench:     501,179 ns/iter (+/- 12,827)
test uncontented_unbounded   ... bench:     226,201 ns/iter (+/- 6,492)
test read_concurrent_contended         ... bench:         882 ns/iter (+/- 17)
test read_concurrent_contended_multi   ... bench:      58,571 ns/iter (+/- 15,770)
test read_concurrent_uncontended       ... bench:         894 ns/iter (+/- 22)
test read_concurrent_uncontended_multi ... bench:      55,448 ns/iter (+/- 18,224)
test read_uncontended                  ... bench:         701 ns/iter (+/- 39)
test contended_concurrent_multi    ... bench:      56,196 ns/iter (+/- 17,147)
test contended_concurrent_single   ... bench:         826 ns/iter (+/- 35)
test uncontended                   ... bench:         668 ns/iter (+/- 25)
test uncontended_concurrent_multi  ... bench:      53,653 ns/iter (+/- 11,613)
test uncontended_concurrent_single ... bench:         821 ns/iter (+/- 36)

noalias=no (run 1)

running 4 tests
test async_read_buf      ... bench:  42,598,322 ns/iter (+/- 4,859,114)
test async_read_codec    ... bench:  43,483,453 ns/iter (+/- 6,024,899)
test async_read_std_file ... bench:     351,248 ns/iter (+/- 7,763)
test sync_read           ... bench:     224,631 ns/iter (+/- 14,482)
test chained_spawn ... bench:     166,279 ns/iter (+/- 8,609)
test ping_pong     ... bench:     646,744 ns/iter (+/- 193,392)
test spawn_many    ... bench:   4,531,167 ns/iter (+/- 1,915,178)
test yield_many    ... bench:   5,308,173 ns/iter (+/- 1,916,132)
test many_signals ... bench:      10,503 ns/iter (+/- 369)
test basic_scheduler_spawn      ... bench:         348 ns/iter (+/- 11)
test basic_scheduler_spawn10    ... bench:       2,122 ns/iter (+/- 34)
test threaded_scheduler_spawn   ... bench:      42,687 ns/iter (+/- 5,954)
test threaded_scheduler_spawn10 ... bench:      43,303 ns/iter (+/- 6,999)
test contention_bounded      ... bench:     849,500 ns/iter (+/- 34,110)
test contention_bounded_full ... bench:   1,279,569 ns/iter (+/- 226,843)
test contention_unbounded    ... bench:     719,727 ns/iter (+/- 57,481)
test create_100_000_medium   ... bench:         133 ns/iter (+/- 2)
test create_100_medium       ... bench:         133 ns/iter (+/- 2)
test create_1_medium         ... bench:         134 ns/iter (+/- 2)
test send_large              ... bench:      13,860 ns/iter (+/- 772)
test send_medium             ... bench:         433 ns/iter (+/- 6)
test uncontented_bounded     ... bench:     373,260 ns/iter (+/- 11,060)
test uncontented_unbounded   ... bench:     224,833 ns/iter (+/- 3,607)
test read_concurrent_contended         ... bench:         375 ns/iter (+/- 8)
test read_concurrent_contended_multi   ... bench:      53,663 ns/iter (+/- 14,189)
test read_concurrent_uncontended       ... bench:         376 ns/iter (+/- 7)
test read_concurrent_uncontended_multi ... bench:      53,501 ns/iter (+/- 18,492)
test read_uncontended                  ... bench:         284 ns/iter (+/- 9)
test contended_concurrent_multi    ... bench:      51,440 ns/iter (+/- 13,924)
test contended_concurrent_single   ... bench:         396 ns/iter (+/- 10)
test uncontended                   ... bench:         296 ns/iter (+/- 23)
test uncontended_concurrent_multi  ... bench:      54,211 ns/iter (+/- 20,910)
test uncontended_concurrent_single ... bench:         396 ns/iter (+/- 7)

noalias=yes (run 2)

test async_read_buf      ... bench:  42,808,806 ns/iter (+/- 6,277,494)
test async_read_codec    ... bench:  42,948,371 ns/iter (+/- 4,599,506)
test async_read_std_file ... bench:     344,128 ns/iter (+/- 12,933)
test sync_read           ... bench:     225,170 ns/iter (+/- 5,330)
test chained_spawn ... bench:     181,796 ns/iter (+/- 11,841)
test ping_pong     ... bench:     686,113 ns/iter (+/- 410,164)
test spawn_many    ... bench:   6,504,537 ns/iter (+/- 2,018,109)
test yield_many    ... bench:   6,029,616 ns/iter (+/- 2,017,168)
test many_signals ... bench:      11,820 ns/iter (+/- 1,097)
test basic_scheduler_spawn      ... bench:         429 ns/iter (+/- 18)
test basic_scheduler_spawn10    ... bench:       2,387 ns/iter (+/- 86)
test threaded_scheduler_spawn   ... bench:      45,163 ns/iter (+/- 7,451)
test threaded_scheduler_spawn10 ... bench:      45,498 ns/iter (+/- 5,011)
test contention_bounded      ... bench:   1,118,813 ns/iter (+/- 90,604)
test contention_bounded_full ... bench:   1,486,695 ns/iter (+/- 286,804)
test contention_unbounded    ... bench:     608,818 ns/iter (+/- 250,661)
test create_100_000_medium   ... bench:         145 ns/iter (+/- 3)
test create_100_medium       ... bench:         143 ns/iter (+/- 3)
test create_1_medium         ... bench:         143 ns/iter (+/- 2)
test send_large              ... bench:      16,959 ns/iter (+/- 448)
test send_medium             ... bench:         525 ns/iter (+/- 12)
test uncontented_bounded     ... bench:     510,488 ns/iter (+/- 17,361)
test uncontented_unbounded   ... bench:     226,511 ns/iter (+/- 9,472)
test read_concurrent_contended         ... bench:         885 ns/iter (+/- 15)
test read_concurrent_contended_multi   ... bench:      59,496 ns/iter (+/- 20,186)
test read_concurrent_uncontended       ... bench:         892 ns/iter (+/- 16)
test read_concurrent_uncontended_multi ... bench:      56,915 ns/iter (+/- 9,039)
test read_uncontended                  ... bench:         699 ns/iter (+/- 30)
test contended_concurrent_multi    ... bench:      55,769 ns/iter (+/- 18,260)
test contended_concurrent_single   ... bench:         823 ns/iter (+/- 63)
test uncontended                   ... bench:         670 ns/iter (+/- 18)
test uncontended_concurrent_multi  ... bench:      56,727 ns/iter (+/- 13,042)
test uncontended_concurrent_single ... bench:         817 ns/iter (+/- 19)

noalias=no (run 2)

test async_read_buf      ... bench:  43,727,849 ns/iter (+/- 6,427,550)
test async_read_codec    ... bench:  44,807,449 ns/iter (+/- 5,049,887)
test async_read_std_file ... bench:     350,257 ns/iter (+/- 8,564)
test sync_read           ... bench:     223,873 ns/iter (+/- 6,475)
test chained_spawn ... bench:     166,971 ns/iter (+/- 10,959)
test ping_pong     ... bench:     671,620 ns/iter (+/- 326,088)
test spawn_many    ... bench:   4,628,201 ns/iter (+/- 1,814,955)
test yield_many    ... bench:   5,333,008 ns/iter (+/- 2,377,994)
test many_signals ... bench:      10,583 ns/iter (+/- 295)
test basic_scheduler_spawn      ... bench:         341 ns/iter (+/- 6)
test basic_scheduler_spawn10    ... bench:       2,128 ns/iter (+/- 106)
test threaded_scheduler_spawn   ... bench:      43,142 ns/iter (+/- 6,671)
test threaded_scheduler_spawn10 ... bench:      43,301 ns/iter (+/- 6,483)
test contention_bounded      ... bench:     848,035 ns/iter (+/- 43,945)
test contention_bounded_full ... bench:   1,438,701 ns/iter (+/- 263,216)
test contention_unbounded    ... bench:     744,514 ns/iter (+/- 83,548)
test create_100_000_medium   ... bench:         137 ns/iter (+/- 6)
test create_100_medium       ... bench:         138 ns/iter (+/- 7)
test create_1_medium         ... bench:         136 ns/iter (+/- 2)
test send_large              ... bench:      13,968 ns/iter (+/- 361)
test send_medium             ... bench:         437 ns/iter (+/- 17)
test uncontented_bounded     ... bench:     369,110 ns/iter (+/- 11,123)
test uncontented_unbounded   ... bench:     225,314 ns/iter (+/- 7,578)
test read_concurrent_contended         ... bench:         368 ns/iter (+/- 10)
test read_concurrent_contended_multi   ... bench:      58,236 ns/iter (+/- 24,068)
test read_concurrent_uncontended       ... bench:         376 ns/iter (+/- 7)
test read_concurrent_uncontended_multi ... bench:      54,555 ns/iter (+/- 18,063)
test read_uncontended                  ... bench:         257 ns/iter (+/- 17)
test contended_concurrent_multi    ... bench:      54,411 ns/iter (+/- 21,465)
test contended_concurrent_single   ... bench:         401 ns/iter (+/- 7)
test uncontended                   ... bench:         290 ns/iter (+/- 15)
test uncontended_concurrent_multi  ... bench:      54,897 ns/iter (+/- 17,476)
test uncontended_concurrent_single ... bench:         399 ns/iter (+/- 9)

noalias=yes 2 (run 1)


test async_read_buf      ... bench:  64,163,301 ns/iter (+/- 17,562,836)
test async_read_codec    ... bench:  64,881,299 ns/iter (+/- 23,659,295)
test async_read_std_file ... bench:     634,132 ns/iter (+/- 115,514)
test sync_read           ... bench:     393,761 ns/iter (+/- 27,414)

test chained_spawn ... bench:     237,302 ns/iter (+/- 92,936)
test ping_pong     ... bench:     654,909 ns/iter (+/- 119,038)
test spawn_many    ... bench:   5,219,559 ns/iter (+/- 3,773,944)
test yield_many    ... bench:  10,071,110 ns/iter (+/- 3,702,004)

test many_signals ... bench:      34,118 ns/iter (+/- 4,855)

test basic_scheduler_spawn      ... bench:         495 ns/iter (+/- 15)
test basic_scheduler_spawn10    ... bench:       2,559 ns/iter (+/- 260)
test threaded_scheduler_spawn   ... bench:      72,990 ns/iter (+/- 27,597)
test threaded_scheduler_spawn10 ... bench:      65,208 ns/iter (+/- 16,079)

test contention_bounded      ... bench:   1,091,431 ns/iter (+/- 251,073)
test contention_bounded_full ... bench:   3,128,958 ns/iter (+/- 1,980,201)
test contention_unbounded    ... bench:   1,000,460 ns/iter (+/- 369,700)
test create_100_000_medium   ... bench:         187 ns/iter (+/- 37)
test create_100_medium       ... bench:         185 ns/iter (+/- 22)
test create_1_medium         ... bench:         183 ns/iter (+/- 6)
test send_large              ... bench:      22,572 ns/iter (+/- 8,359)
test send_medium             ... bench:         655 ns/iter (+/- 215)
test uncontented_bounded     ... bench:     452,298 ns/iter (+/- 68,362)
test uncontented_unbounded   ... bench:     292,032 ns/iter (+/- 5,377)

test read_concurrent_contended         ... bench:         461 ns/iter (+/- 17)
test read_concurrent_contended_multi   ... bench:      68,639 ns/iter (+/- 20,224)
test read_concurrent_uncontended       ... bench:         454 ns/iter (+/- 17)
test read_concurrent_uncontended_multi ... bench:      66,269 ns/iter (+/- 19,445)
test read_uncontended                  ... bench:         341 ns/iter (+/- 7)

test contended_concurrent_multi    ... bench:      71,480 ns/iter (+/- 21,995)
test contended_concurrent_single   ... bench:         504 ns/iter (+/- 26)
test uncontended                   ... bench:         408 ns/iter (+/- 27)
test uncontended_concurrent_multi  ... bench:      70,807 ns/iter (+/- 25,038)
test uncontended_concurrent_single ... bench:         505 ns/iter (+/- 16)

noalias=no 2 (run 1)


test async_read_buf      ... bench:  66,407,034 ns/iter (+/- 20,128,164)
test async_read_codec    ... bench:  67,476,529 ns/iter (+/- 21,296,086)
test async_read_std_file ... bench:     650,964 ns/iter (+/- 61,722)
test sync_read           ... bench:     388,900 ns/iter (+/- 59,632)

test chained_spawn ... bench:     233,094 ns/iter (+/- 92,817)
test ping_pong     ... bench:     931,228 ns/iter (+/- 784,097)
test spawn_many    ... bench:   5,745,078 ns/iter (+/- 5,328,234)
test yield_many    ... bench:  11,553,501 ns/iter (+/- 6,332,810)

test many_signals ... bench:      33,725 ns/iter (+/- 1,519)

test basic_scheduler_spawn      ... bench:         500 ns/iter (+/- 29)
test basic_scheduler_spawn10    ... bench:       2,610 ns/iter (+/- 59)
test threaded_scheduler_spawn   ... bench:      62,922 ns/iter (+/- 16,966)
test threaded_scheduler_spawn10 ... bench:      64,989 ns/iter (+/- 15,319)

test contention_bounded      ... bench:     684,671 ns/iter (+/- 184,927)
test contention_bounded_full ... bench:   3,270,976 ns/iter (+/- 1,688,768)
test contention_unbounded    ... bench:     927,693 ns/iter (+/- 357,217)
test create_100_000_medium   ... bench:         182 ns/iter (+/- 6)
test create_100_medium       ... bench:         184 ns/iter (+/- 13)
test create_1_medium         ... bench:         184 ns/iter (+/- 8)
test send_large              ... bench:      20,680 ns/iter (+/- 2,976)
test send_medium             ... bench:         672 ns/iter (+/- 81)
test uncontented_bounded     ... bench:     441,803 ns/iter (+/- 133,839)
test uncontented_unbounded   ... bench:     292,722 ns/iter (+/- 10,634)

test read_concurrent_contended         ... bench:         460 ns/iter (+/- 18)
test read_concurrent_contended_multi   ... bench:      74,209 ns/iter (+/- 24,605)
test read_concurrent_uncontended       ... bench:         455 ns/iter (+/- 24)
test read_concurrent_uncontended_multi ... bench:      70,295 ns/iter (+/- 23,978)
test read_uncontended                  ... bench:         316 ns/iter (+/- 30)

test contended_concurrent_multi    ... bench:      68,974 ns/iter (+/- 19,908)
test contended_concurrent_single   ... bench:         499 ns/iter (+/- 18)
test uncontended                   ... bench:         409 ns/iter (+/- 25)
test uncontended_concurrent_multi  ... bench:      74,240 ns/iter (+/- 25,113)
test uncontended_concurrent_single ... bench:         505 ns/iter (+/- 53)

noalias=no 2 (run 2)

test async_read_buf      ... bench:  66,735,419 ns/iter (+/- 24,118,828)
test async_read_codec    ... bench:  70,594,036 ns/iter (+/- 17,479,123)
test async_read_std_file ... bench:     673,892 ns/iter (+/- 192,549)
test sync_read           ... bench:     389,484 ns/iter (+/- 17,484)

test chained_spawn ... bench:     232,673 ns/iter (+/- 91,057)
test ping_pong     ... bench:   1,277,396 ns/iter (+/- 984,110)
test spawn_many    ... bench:   6,633,357 ns/iter (+/- 5,119,346)
test yield_many    ... bench:  10,457,007 ns/iter (+/- 5,969,805)

test many_signals ... bench:      34,067 ns/iter (+/- 780)

test basic_scheduler_spawn      ... bench:         484 ns/iter (+/- 35)
test basic_scheduler_spawn10    ... bench:       2,518 ns/iter (+/- 35)
test threaded_scheduler_spawn   ... bench:      62,055 ns/iter (+/- 29,695)
test threaded_scheduler_spawn10 ... bench:      76,295 ns/iter (+/- 21,349)

test contention_bounded      ... bench:   1,015,232 ns/iter (+/- 270,855)
test contention_bounded_full ... bench:   3,465,860 ns/iter (+/- 1,766,240)
test contention_unbounded    ... bench:     835,536 ns/iter (+/- 430,564)
test create_100_000_medium   ... bench:         182 ns/iter (+/- 7)
test create_100_medium       ... bench:         182 ns/iter (+/- 2)
test create_1_medium         ... bench:         182 ns/iter (+/- 3)
test send_large              ... bench:      20,416 ns/iter (+/- 3,453)
test send_medium             ... bench:         698 ns/iter (+/- 88)
test uncontented_bounded     ... bench:     440,028 ns/iter (+/- 21,960)
test uncontented_unbounded   ... bench:     297,629 ns/iter (+/- 19,258)

test read_concurrent_contended         ... bench:         460 ns/iter (+/- 23)
test read_concurrent_contended_multi   ... bench:      72,361 ns/iter (+/- 22,170)
test read_concurrent_uncontended       ... bench:         461 ns/iter (+/- 34)
test read_concurrent_uncontended_multi ... bench:      70,097 ns/iter (+/- 21,731)
test read_uncontended                  ... bench:         345 ns/iter (+/- 35)

test contended_concurrent_multi    ... bench:      69,917 ns/iter (+/- 18,197)
test contended_concurrent_single   ... bench:         503 ns/iter (+/- 22)
test uncontended                   ... bench:         408 ns/iter (+/- 71)
test uncontended_concurrent_multi  ... bench:      69,028 ns/iter (+/- 22,966)
test uncontended_concurrent_single ... bench:         503 ns/iter (+/- 7)

syn

the runs were performned interleaved (yes,no,yes,no...)

noalias=yes

test parse_file ... bench:   4,571,070 ns/iter (+/- 227,304)
test parse_file ... bench:   4,651,837 ns/iter (+/- 178,813)
test parse_file ... bench:   4,688,910 ns/iter (+/- 264,562)
test parse_file ... bench:   4,653,736 ns/iter (+/- 417,626)
test parse_file ... bench:   4,661,743 ns/iter (+/- 412,862)
test parse_file ... bench:   4,669,829 ns/iter (+/- 238,869)
test parse_file ... bench:   4,662,925 ns/iter (+/- 236,947)

noalias=no

test parse_file ... bench:   4,667,046 ns/iter (+/- 207,024)
test parse_file ... bench:   4,682,912 ns/iter (+/- 191,303)
test parse_file ... bench:   4,729,934 ns/iter (+/- 578,892)
test parse_file ... bench:   4,755,773 ns/iter (+/- 448,891)
test parse_file ... bench:   4,906,715 ns/iter (+/- 765,366)
test parse_file ... bench:   4,604,870 ns/iter (+/- 342,328)
test parse_file ... bench:   4,663,915 ns/iter (+/- 208,530)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment