Skip to content

Instantly share code, notes, and snippets.

@berquist
Created March 8, 2019 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berquist/eb456fa3d64459d83accb819930d5001 to your computer and use it in GitHub Desktop.
Save berquist/eb456fa3d64459d83accb819930d5001 to your computer and use it in GitHub Desktop.
------------------------------------------------------------------------------- benchmark 'Create empty': 4 tests --------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Mops/s) Rounds Iterations
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
frozenset 36.0000 (1.0) 953.0000 (1.0) 42.2910 (1.0) 13.2559 (1.0) 40.0000 (1.0) 2.0000 (1.0) 1269;1906 23.6457 (1.0) 24391 1000
set 50.0000 (1.39) 990.0000 (1.04) 66.6269 (1.58) 24.5312 (1.85) 60.0000 (1.50) 10.0000 (5.00) 916;968 15.0090 (0.63) 50001 100
function_call 71.4286 (1.98) 1,214.2857 (1.27) 88.9525 (2.10) 32.6265 (2.46) 79.3651 (1.98) 7.9365 (3.97) 6094;8144 11.2420 (0.48) 100001 126
immutableset 100.0000 (2.78) 1,080.0000 (1.13) 127.7121 (3.02) 42.3309 (3.19) 120.0000 (3.00) 20.0000 (10.00) 5511;6560 7.8301 (0.33) 90910 100
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------- benchmark 'Creating from big list': 8 tests --------------------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function_call 100.0000 (1.0) 3,500.0000 (1.0) 198.6668 (1.0) 161.7965 (1.0) 200.0000 (1.0) 100.0000 (1.0) 459;459 5,033,553.3310 (1.0) 45455 10
list 23,000.0000 (230.00) 137,000.0000 (39.14) 28,109.9328 (141.49) 8,344.5074 (51.57) 26,000.0000 (130.00) 3,000.0000 (30.00) 2755;3217 35,574.6137 (0.01) 28572 1
tuple 24,000.0000 (240.00) 211,000.0000 (60.29) 27,533.2993 (138.59) 7,282.4327 (45.01) 26,000.0000 (130.00) 2,000.0000 (20.00) 1840;2107 36,319.6574 (0.01) 33334 1
ImmutableList 55,000.0000 (550.00) 429,000.0000 (122.57) 72,106.3463 (362.95) 23,114.6013 (142.86) 63,000.0000 (315.00) 9,000.0000 (90.00) 1430;2058 13,868.4048 (0.00) 12196 1
frozenset 169,000.0000 (>1000.0) 1,755,000.0000 (501.43) 210,724.1723 (>1000.0) 71,259.2490 (440.43) 189,000.0000 (945.00) 20,000.0000 (200.00) 317;614 4,745.5401 (0.00) 4017 1
set 170,000.0000 (>1000.0) 613,000.0000 (175.14) 212,384.5050 (>1000.0) 42,502.3966 (262.69) 191,000.0000 (955.00) 38,000.0000 (380.00) 488;308 4,708.4414 (0.00) 3485 1
ImmutableSet 1,013,000.0000 (>1000.0) 3,916,000.0000 (>1000.0) 1,212,595.5787 (>1000.0) 185,505.5425 (>1000.0) 1,197,000.0000 (>1000.0) 81,000.0000 (810.00) 60;76 824.6773 (0.00) 769 1
immutableset 1,191,000.0000 (>1000.0) 4,075,000.0000 (>1000.0) 1,586,393.1034 (>1000.0) 380,797.5074 (>1000.0) 1,430,000.0000 (>1000.0) 316,250.0000 (>1000.0) 104;60 630.3608 (0.00) 725 1
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------- benchmark 'Creating from big tuple': 8 tests -------------------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tuple 45.1977 (1.0) 570.6215 (1.0) 59.0323 (1.0) 19.4192 (1.0) 56.4972 (1.0) 5.6497 (1.0) 3656;5481 16,939,865.0375 (1.0) 100001 177
function_call 71.4286 (1.58) 690.4762 (1.21) 89.7979 (1.52) 26.3916 (1.36) 87.3016 (1.55) 7.9365 (1.40) 3953;6130 11,136,123.1973 (0.66) 100000 126
list 23,000.0000 (508.88) 113,000.0000 (198.03) 27,621.9402 (467.91) 6,550.6670 (337.33) 26,000.0000 (460.20) 3,000.0000 (531.00) 549;747 36,203.1049 (0.00) 11112 1
ImmutableList 55,000.0000 (>1000.0) 215,000.0000 (376.78) 59,838.7200 (>1000.0) 11,271.0210 (580.41) 57,000.0000 (>1000.0) 3,000.0000 (531.00) 308;347 16,711.5874 (0.00) 6250 1
frozenset 164,000.0000 (>1000.0) 604,000.0000 (>1000.0) 194,750.8156 (>1000.0) 42,325.8230 (>1000.0) 182,000.0000 (>1000.0) 10,000.0000 (>1000.0) 389;665 5,134.7667 (0.00) 3985 1
set 164,000.0000 (>1000.0) 983,000.0000 (>1000.0) 208,718.9586 (>1000.0) 62,271.4052 (>1000.0) 184,000.0000 (>1000.0) 36,000.0000 (>1000.0) 170;175 4,791.1316 (0.00) 1498 1
ImmutableSet 999,000.0000 (>1000.0) 3,831,000.0000 (>1000.0) 1,234,841.9048 (>1000.0) 247,241.8844 (>1000.0) 1,173,000.0000 (>1000.0) 140,750.0000 (>1000.0) 49;51 809.8203 (0.00) 525 1
immutableset 1,190,000.0000 (>1000.0) 5,165,000.0000 (>1000.0) 1,514,933.1476 (>1000.0) 331,283.1343 (>1000.0) 1,454,000.0000 (>1000.0) 132,000.0000 (>1000.0) 21;41 660.0951 (0.00) 359 1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------- benchmark 'Creating from empty list': 8 tests ---------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tuple 0.0000 (1.0) 30,000.0000 (41.70) 1,078.3074 (12.46) 1,098.9686 (36.66) 1,000.0000 (12.64) 0.0000 (1.0) 154;20775 927.3793 (0.08) 47620 1
function_call 64.7482 (inf) 719.4245 (1.0) 86.5598 (1.0) 29.9745 (1.0) 79.1367 (1.0) 7.1942 (>1000.0) 3870;4978 11,552.7074 (1.0) 90910 139
list 70.0000 (inf) 1,290.0000 (1.79) 89.1332 (1.03) 31.5976 (1.05) 80.0000 (1.01) 10.0000 (>1000.0) 3598;4618 11,219.1630 (0.97) 100001 100
set 71.4286 (inf) 919.6429 (1.28) 96.3039 (1.11) 39.1581 (1.31) 89.2857 (1.13) 17.8571 (>1000.0) 5380;5764 10,383.7903 (0.90) 100001 112
frozenset 80.0000 (inf) 1,300.0000 (1.81) 98.3222 (1.14) 37.7081 (1.26) 90.0000 (1.14) 10.0000 (>1000.0) 3957;4700 10,170.6413 (0.88) 100001 100
immutableset 4,000.0000 (inf) 83,000.0000 (115.37) 5,736.7761 (66.28) 2,387.3363 (79.65) 5,000.0000 (63.18) 1,000.0000 (>1000.0) 134;147 174.3139 (0.02) 8772 1
ImmutableList 4,000.0000 (inf) 85,000.0000 (118.15) 5,754.0290 (66.47) 2,833.4057 (94.53) 5,000.0000 (63.18) 1,000.0000 (>1000.0) 602;803 173.7913 (0.02) 19608 1
ImmutableSet 5,000.0000 (inf) 100,000.0000 (139.00) 7,559.7203 (87.34) 3,598.4755 (120.05) 7,000.0000 (88.45) 2,000.0000 (>1000.0) 517;562 132.2800 (0.01) 15874 1
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------- benchmark 'Creating from empty tuple': 8 tests --------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tuple 48.3871 (1.0) 704.3011 (1.02) 57.9213 (1.0) 19.9663 (1.0) 53.7634 (1.0) 5.3763 (>1000.0) 4143;4898 17,264.7939 (1.0) 90910 186
function_call 70.0000 (1.45) 890.0000 (1.28) 96.3528 (1.66) 42.6174 (2.13) 90.0000 (1.67) 10.0000 (>1000.0) 4183;5771 10,378.5290 (0.60) 66667 100
set 70.0000 (1.45) 980.0000 (1.41) 98.7954 (1.71) 37.2627 (1.87) 90.0000 (1.67) 10.0000 (>1000.0) 3059;3911 10,121.9309 (0.59) 62501 100
frozenset 71.4286 (1.48) 937.5000 (1.35) 96.3356 (1.66) 31.8922 (1.60) 89.2857 (1.66) 8.9286 (>1000.0) 3652;4313 10,380.3825 (0.60) 90910 112
list 71.4286 (1.48) 692.8571 (1.0) 87.9110 (1.52) 29.9511 (1.50) 78.5714 (1.46) 7.1429 (>1000.0) 4649;7014 11,375.1467 (0.66) 83334 140
immutableset 4,000.0000 (82.67) 65,000.0000 (93.81) 5,941.8951 (102.59) 2,668.6405 (133.66) 6,000.0000 (111.60) 1,000.0000 (>1000.0) 167;194 168.2965 (0.01) 6712 1
ImmutableList 4,000.0000 (82.67) 134,000.0000 (193.40) 5,234.8621 (90.38) 2,182.0889 (109.29) 5,000.0000 (93.00) 0.0000 (1.0) 166;6143 191.0270 (0.01) 13889 1
ImmutableSet 6,000.0000 (124.00) 86,000.0000 (124.12) 7,328.8586 (126.53) 3,211.6630 (160.85) 7,000.0000 (130.20) 1,000.0000 (>1000.0) 349;529 136.4469 (0.01) 13334 1
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------- benchmark 'Creating from small list': 8 tests ----------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tuple 64.2857 (1.0) 700.0000 (1.0) 78.1413 (1.0) 25.5198 (1.0) 71.4286 (1.0) 7.1429 (1.0) 4027;5309 12,797.3316 (1.0) 100001 140
function_call 72.0000 (1.12) 1,096.0000 (1.57) 89.7597 (1.15) 32.4068 (1.27) 80.0000 (1.12) 8.0000 (1.12) 4555;5848 11,140.8597 (0.87) 100000 125
list 89.2857 (1.39) 1,169.6429 (1.67) 105.0013 (1.34) 30.0768 (1.18) 98.2143 (1.37) 8.9286 (1.25) 3366;4136 9,523.6942 (0.74) 100001 112
set 90.0000 (1.40) 1,000.0000 (1.43) 120.9574 (1.55) 46.3325 (1.82) 110.0000 (1.54) 10.0000 (1.40) 4777;5693 8,267.3767 (0.65) 83334 100
frozenset 100.0000 (1.56) 2,220.0000 (3.17) 124.6221 (1.59) 45.9203 (1.80) 120.0000 (1.68) 10.0000 (1.40) 4223;5623 8,024.2575 (0.63) 83334 100
ImmutableList 5,000.0000 (77.78) 155,000.0000 (221.43) 7,002.0010 (89.61) 2,751.3850 (107.81) 7,000.0000 (98.00) 1,000.0000 (140.00) 1281;1627 142.8163 (0.01) 34483 1
immutableset 7,000.0000 (108.89) 134,000.0000 (191.43) 9,342.0332 (119.55) 4,939.8594 (193.57) 8,000.0000 (112.00) 1,000.0000 (140.00) 2502;3631 107.0431 (0.01) 50001 1
ImmutableSet 8,000.0000 (124.44) 105,000.0000 (150.00) 10,124.4536 (129.57) 3,950.8189 (154.81) 10,000.0000 (140.00) 1,000.0000 (140.00) 632;821 98.7708 (0.01) 21277 1
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------- benchmark 'Creating from small tuple': 8 tests ---------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tuple 47.9042 (1.0) 754.4910 (1.07) 57.5575 (1.0) 17.8340 (1.0) 53.8922 (1.0) 5.9880 (1.0) 2871;3097 17,373.9352 (1.0) 90910 167
function_call 69.9301 (1.46) 706.2937 (1.0) 88.8759 (1.54) 32.1083 (1.80) 83.9161 (1.56) 6.9930 (1.17) 5194;7747 11,251.6466 (0.65) 90910 143
frozenset 90.0000 (1.88) 1,130.0000 (1.60) 121.8130 (2.12) 44.9018 (2.52) 110.0000 (2.04) 10.0000 (1.67) 4666;5816 8,209.3043 (0.47) 90910 100
list 90.0000 (1.88) 1,190.0000 (1.68) 109.7554 (1.91) 38.1588 (2.14) 100.0000 (1.86) 10.0000 (1.67) 3978;4586 9,111.1721 (0.52) 90910 100
set 90.0000 (1.88) 1,220.0000 (1.73) 122.2813 (2.12) 44.3042 (2.48) 110.0000 (2.04) 10.0000 (1.67) 5256;7122 8,177.8675 (0.47) 90910 100
ImmutableList 5,000.0000 (104.38) 71,000.0000 (100.52) 7,328.1534 (127.32) 3,066.6601 (171.96) 7,000.0000 (129.89) 1,000.0000 (167.00) 1020;1321 136.4600 (0.01) 28572 1
immutableset 7,000.0000 (146.12) 120,000.0000 (169.90) 9,197.9420 (159.80) 4,204.1505 (235.74) 8,000.0000 (148.44) 1,000.0000 (167.00) 1833;3424 108.7200 (0.01) 47620 1
ImmutableSet 8,000.0000 (167.00) 97,000.0000 (137.34) 10,298.7600 (178.93) 4,178.3682 (234.29) 10,000.0000 (185.56) 1,000.0000 (167.00) 854;1241 97.0991 (0.01) 25000 1
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------- benchmark 'Create empty': 4 tests --------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Mops/s) Rounds Iterations
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
frozenset 36.0000 (1.0) 156.0000 (1.0) 43.2748 (1.0) 11.8466 (1.0) 40.0000 (1.0) 3.0000 (1.0) 2525;3402 23.1081 (1.0) 27028 1000
set 47.9042 (1.33) 491.0180 (3.15) 62.1832 (1.44) 21.1016 (1.78) 59.8802 (1.50) 5.9880 (2.00) 4557;5595 16.0815 (0.70) 100001 167
function_call 71.4286 (1.98) 728.5714 (4.67) 86.0903 (1.99) 28.9578 (2.44) 78.5714 (1.96) 7.1429 (2.38) 4974;5923 11.6157 (0.50) 90910 140
immutableset 100.0000 (2.78) 1,020.0000 (6.54) 127.5048 (2.95) 43.0276 (3.63) 120.0000 (3.00) 10.0000 (3.33) 6302;8019 7.8428 (0.34) 90910 100
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------- benchmark 'Creating from big list': 8 tests --------------------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function_call 71.4286 (1.0) 728.5714 (1.0) 91.8227 (1.0) 32.9544 (1.0) 85.7143 (1.0) 14.2857 (1.0) 4855;5331 10,890,557.3089 (1.0) 83334 140
list 23,000.0000 (322.00) 2,185,000.0000 (>1000.0) 33,536.9920 (365.24) 20,202.3586 (613.04) 27,000.0000 (315.00) 10,000.0000 (700.00) 2546;2878 29,817.8203 (0.00) 31250 1
tuple 24,000.0000 (336.00) 536,000.0000 (735.69) 29,152.6319 (317.49) 9,834.6652 (298.43) 27,000.0000 (315.00) 2,000.0000 (140.00) 2022;2592 34,302.2202 (0.00) 28572 1
ImmutableList 55,000.0000 (770.00) 2,165,000.0000 (>1000.0) 70,732.7879 (770.32) 31,151.6541 (945.30) 63,000.0000 (735.00) 8,000.0000 (560.00) 912;2094 14,137.7150 (0.00) 12346 1
frozenset 169,000.0000 (>1000.0) 2,516,000.0000 (>1000.0) 205,294.4638 (>1000.0) 57,992.1910 (>1000.0) 188,000.0000 (>1000.0) 18,000.0000 (>1000.0) 461;750 4,871.0520 (0.00) 4588 1
set 169,000.0000 (>1000.0) 1,846,000.0000 (>1000.0) 227,979.4002 (>1000.0) 72,139.1387 (>1000.0) 198,000.0000 (>1000.0) 56,000.0000 (>1000.0) 400;251 4,386.3612 (0.00) 3301 1
ImmutableSet 1,007,000.0000 (>1000.0) 3,757,000.0000 (>1000.0) 1,289,456.5499 (>1000.0) 289,653.8581 (>1000.0) 1,197,000.0000 (>1000.0) 228,000.0000 (>1000.0) 92;66 775.5205 (0.00) 771 1
immutableset 1,194,000.0000 (>1000.0) 3,215,000.0000 (>1000.0) 1,460,018.8206 (>1000.0) 272,326.9694 (>1000.0) 1,372,000.0000 (>1000.0) 194,000.0000 (>1000.0) 88;79 684.9227 (0.00) 797 1
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------- benchmark 'Creating from big tuple': 8 tests --------------------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tuple 48.3871 (1.0) 6,462.3656 (10.18) 62.7545 (1.0) 31.8333 (1.23) 53.7634 (1.0) 5.3763 (1.0) 8616;11720 15,935,117.3061 (1.0) 100001 186
function_call 71.4286 (1.48) 634.9206 (1.0) 90.1671 (1.44) 25.8552 (1.0) 87.3016 (1.62) 7.9365 (1.48) 5280;7544 11,090,524.7993 (0.70) 90910 126
list 23,000.0000 (475.33) 171,000.0000 (269.33) 26,187.5222 (417.30) 6,765.3131 (261.66) 25,000.0000 (465.00) 2,000.0000 (372.00) 378;467 38,186.1251 (0.00) 11236 1
ImmutableList 56,000.0000 (>1000.0) 278,000.0000 (437.85) 65,262.7091 (>1000.0) 16,194.6760 (626.36) 61,000.0000 (>1000.0) 3,000.0000 (558.00) 473;699 15,322.6860 (0.00) 6098 1
frozenset 163,000.0000 (>1000.0) 2,916,000.0000 (>1000.0) 191,902.9904 (>1000.0) 64,376.2780 (>1000.0) 178,000.0000 (>1000.0) 18,000.0000 (>1000.0) 431;772 5,210.9662 (0.00) 5618 1
set 164,000.0000 (>1000.0) 2,184,000.0000 (>1000.0) 201,420.9845 (>1000.0) 71,744.3360 (>1000.0) 182,000.0000 (>1000.0) 24,000.0000 (>1000.0) 147;249 4,964.7260 (0.00) 1544 1
ImmutableSet 993,000.0000 (>1000.0) 4,532,000.0000 (>1000.0) 1,203,967.1429 (>1000.0) 314,132.6279 (>1000.0) 1,119,000.0000 (>1000.0) 107,000.0000 (>1000.0) 69;90 830.5875 (0.00) 700 1
immutableset 1,188,000.0000 (>1000.0) 4,381,000.0000 (>1000.0) 1,384,994.3503 (>1000.0) 279,890.5019 (>1000.0) 1,330,500.0000 (>1000.0) 93,500.0000 (>1000.0) 43;67 722.0246 (0.00) 708 1
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------- benchmark 'Creating from empty list': 8 tests --------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tuple 48.7805 (1.0) 560.9756 (1.0) 60.7477 (1.0) 20.4708 (1.0) 53.6585 (1.0) 4.8780 (1.0) 7309;10991 16,461.5220 (1.0) 90910 205
function_call 71.4286 (1.46) 750.0000 (1.34) 94.6026 (1.56) 35.6741 (1.74) 85.7143 (1.60) 14.2857 (2.93) 2882;3123 10,570.5325 (0.64) 32259 140
set 71.4286 (1.46) 910.7143 (1.62) 108.8998 (1.79) 49.1909 (2.40) 89.2857 (1.66) 8.9286 (1.83) 13377;17977 9,182.7530 (0.56) 100001 112
list 72.0000 (1.48) 616.0000 (1.10) 84.3715 (1.39) 24.7617 (1.21) 80.0000 (1.49) 16.0000 (3.28) 4549;4548 11,852.3407 (0.72) 100000 125
frozenset 80.0000 (1.64) 1,130.0000 (2.01) 100.9504 (1.66) 38.7724 (1.89) 90.0000 (1.68) 10.0000 (2.05) 5247;6096 9,905.8557 (0.60) 100001 100
immutableset 4,000.0000 (82.00) 59,000.0000 (105.17) 5,662.3683 (93.21) 1,789.8533 (87.43) 5,000.0000 (93.18) 1,000.0000 (205.00) 84;84 176.6046 (0.01) 8065 1
ImmutableList 4,000.0000 (82.00) 61,000.0000 (108.74) 4,867.9602 (80.13) 1,796.9084 (87.78) 5,000.0000 (93.18) 1,000.0000 (205.00) 314;314 205.4249 (0.01) 22728 1
ImmutableSet 6,000.0000 (123.00) 93,000.0000 (165.78) 7,800.5950 (128.41) 3,988.9787 (194.86) 7,000.0000 (130.45) 1,000.0000 (205.00) 381;671 128.1953 (0.01) 11765 1
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------- benchmark 'Creating from empty tuple': 8 tests --------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tuple 47.9042 (1.0) 467.0659 (1.0) 56.2936 (1.0) 17.0103 (1.0) 53.8922 (1.0) 5.9880 (1.0) 3441;6051 17,764.0110 (1.0) 100000 167
list 70.0000 (1.46) 1,060.0000 (2.27) 85.6312 (1.52) 25.9801 (1.53) 80.0000 (1.48) 10.0000 (1.67) 3131;3248 11,677.9806 (0.66) 100001 100
frozenset 71.4286 (1.49) 875.0000 (1.87) 98.6611 (1.75) 40.3156 (2.37) 89.2857 (1.66) 8.9286 (1.49) 5737;6472 10,135.7113 (0.57) 90910 112
function_call 72.0000 (1.50) 816.0000 (1.75) 94.8083 (1.68) 37.5437 (2.21) 88.0000 (1.63) 8.0000 (1.34) 6462;9361 10,547.5980 (0.59) 90910 125
set 72.0000 (1.50) 720.0000 (1.54) 92.5792 (1.64) 32.7247 (1.92) 88.0000 (1.63) 8.0000 (1.34) 6134;7815 10,801.5677 (0.61) 100001 125
immutableset 4,000.0000 (83.50) 87,000.0000 (186.27) 6,217.5209 (110.45) 3,610.9904 (212.28) 5,000.0000 (92.78) 1,000.0000 (167.00) 316;378 160.8358 (0.01) 6712 1
ImmutableList 4,000.0000 (83.50) 67,000.0000 (143.45) 4,830.1302 (85.80) 2,099.8770 (123.45) 5,000.0000 (92.78) 1,000.0000 (167.00) 254;254 207.0338 (0.01) 16130 1
ImmutableSet 5,000.0000 (104.37) 84,000.0000 (179.85) 7,141.1200 (126.85) 3,232.2563 (190.02) 7,000.0000 (129.89) 1,000.0000 (167.00) 362;697 140.0341 (0.01) 12500 1
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------- benchmark 'Creating from small list': 8 tests ----------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tuple 62.9371 (1.0) 720.2797 (1.24) 78.9326 (1.0) 28.4688 (1.23) 69.9301 (1.0) 6.9930 (1.0) 7450;9221 12,669.0386 (1.0) 100000 143
function_call 71.4286 (1.13) 578.5714 (1.0) 89.3381 (1.13) 23.1520 (1.0) 85.7143 (1.23) 14.2857 (2.04) 5994;5989 11,193.4300 (0.88) 90910 140
list 89.2857 (1.42) 2,044.6429 (3.53) 121.4636 (1.54) 49.7213 (2.15) 107.1429 (1.53) 17.8571 (2.55) 10698;11986 8,232.9169 (0.65) 90910 112
frozenset 100.0000 (1.59) 1,030.0000 (1.78) 127.6775 (1.62) 39.6728 (1.71) 120.0000 (1.72) 20.0000 (2.86) 5225;5500 7,832.2346 (0.62) 90910 100
set 100.0000 (1.59) 1,030.0000 (1.78) 120.1289 (1.52) 37.1708 (1.61) 110.0000 (1.57) 10.0000 (1.43) 4003;4388 8,324.3930 (0.66) 83334 100
ImmutableList 5,000.0000 (79.44) 74,000.0000 (127.90) 6,642.6214 (84.16) 2,675.9046 (115.58) 6,000.0000 (85.80) 1,000.0000 (143.00) 867;1166 150.5430 (0.01) 30304 1
immutableset 7,000.0000 (111.22) 103,000.0000 (178.02) 8,329.3734 (105.53) 2,782.0875 (120.17) 8,000.0000 (114.40) 2,000.0000 (286.00) 1013;1013 120.0570 (0.01) 50001 1
ImmutableSet 8,000.0000 (127.11) 112,000.0000 (193.58) 11,096.0640 (140.58) 4,627.1146 (199.86) 10,000.0000 (143.00) 2,000.0000 (286.00) 1288;1502 90.1220 (0.01) 15625 1
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------- benchmark 'Creating from small tuple': 8 tests --------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS (Kops/s) Rounds Iterations
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
tuple 47.8469 (1.0) 449.7608 (1.0) 56.4623 (1.0) 17.2622 (1.0) 52.6316 (1.0) 4.7847 (1.0) 4518;5341 17,710.9314 (1.0) 83334 209
function_call 71.4286 (1.49) 776.7857 (1.73) 90.5824 (1.60) 29.2752 (1.70) 80.3571 (1.53) 8.9286 (1.87) 5546;7417 11,039.6709 (0.62) 100000 112
list 90.0000 (1.88) 1,210.0000 (2.69) 107.3702 (1.90) 34.0692 (1.97) 100.0000 (1.90) 20.0000 (4.18) 6910;8030 9,313.5712 (0.53) 100000 100
frozenset 100.0000 (2.09) 990.0000 (2.20) 126.1800 (2.23) 44.7841 (2.59) 120.0000 (2.28) 10.0000 (2.09) 5408;7753 7,925.1889 (0.45) 90910 100
set 100.0000 (2.09) 960.0000 (2.13) 128.0756 (2.27) 49.6388 (2.88) 120.0000 (2.28) 10.0000 (2.09) 6520;8786 7,807.8903 (0.44) 90910 100
ImmutableList 5,000.0000 (104.50) 138,000.0000 (306.83) 7,192.2162 (127.38) 3,528.5118 (204.41) 6,000.0000 (114.00) 1,000.0000 (209.00) 2741;3677 139.0392 (0.01) 35715 1
immutableset 7,000.0000 (146.30) 218,000.0000 (484.70) 8,584.8383 (152.05) 3,571.9961 (206.93) 8,000.0000 (152.00) 2,000.0000 (418.00) 2359;2534 116.4844 (0.01) 47620 1
ImmutableSet 7,000.0000 (146.30) 93,000.0000 (206.78) 9,666.9747 (171.21) 3,692.4391 (213.90) 9,000.0000 (171.00) 1,000.0000 (209.00) 556;834 103.4450 (0.01) 22728 1
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment