Skip to content

Instantly share code, notes, and snippets.

@berquist
Created March 14, 2019 16:26
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/ec3b46735b3059402b1c3a87a3fcf596 to your computer and use it in GitHub Desktop.
Save berquist/ec3b46735b3059402b1c3a87a3fcf596 to your computer and use it in GitHub Desktop.
-------------------------------------------------------------------------------------------------------------- benchmark 'Serialization': 54 tests ---------------------------------------------------------------------------------------------------------------
Name (time in ns) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
empty dict (0001_as_list) 321.4286 (1.0) 3,571.4286 (1.19) 416.9956 (1.0) 121.8451 (1.0) 392.8571 (1.00) 71.4286 (1.64) 4815;5086 2,398,106.7479 (1.0) 90910 28
empty dict (0003_as_tupl) 321.4286 (1.0) 3,214.2857 (1.07) 423.6954 (1.02) 135.2486 (1.11) 392.8571 (1.0) 71.4286 (1.64) 7650;8041 2,360,186.3536 (0.98) 100000 28
empty dict (0002_as_tupl) 350.0000 (1.09) 4,150.0000 (1.38) 475.7437 (1.14) 142.7925 (1.17) 450.0000 (1.15) 100.0000 (2.30) 5206;5206 2,101,971.9453 (0.88) 100001 20
small tuple (0003_as_tupl) 350.0000 (1.09) 4,600.0000 (1.53) 480.1662 (1.15) 140.8885 (1.16) 450.0000 (1.15) 50.0000 (1.15) 5323;6089 2,082,612.2361 (0.87) 100001 20
small list (0001_as_list) 391.3043 (1.22) 5,347.8261 (1.78) 503.8983 (1.21) 166.8442 (1.37) 478.2609 (1.22) 43.4783 (1.0) 9344;14059 1,984,527.5875 (0.83) 100000 23
small list (0002_as_tupl) 391.3043 (1.22) 8,739.1304 (2.91) 543.9820 (1.30) 188.1056 (1.54) 521.7391 (1.33) 43.4783 (1.0) 8127;11355 1,838,296.2840 (0.77) 100001 23
small list (0003_as_tupl) 400.0000 (1.24) 16,650.0000 (5.55) 516.7897 (1.24) 279.2090 (2.29) 450.0000 (1.15) 50.0000 (1.15) 3105;3780 1,935,023.0312 (0.81) 43479 20
small tuple (0001_as_list) 400.0000 (1.24) 5,200.0000 (1.73) 494.1032 (1.18) 166.8689 (1.37) 450.0000 (1.15) 50.0000 (1.15) 5563;7110 2,023,868.5046 (0.84) 83334 20
small tuple (0002_as_tupl) 400.0000 (1.24) 4,600.0000 (1.53) 531.9359 (1.28) 149.7234 (1.23) 500.0000 (1.27) 50.0000 (1.15) 4491;5761 1,879,925.6007 (0.78) 83334 20
small dict (0001_as_list) 500.0000 (1.56) 4,150.0000 (1.38) 621.5044 (1.49) 163.1535 (1.34) 600.0000 (1.53) 100.0000 (2.30) 4349;4349 1,608,998.9950 (0.67) 83334 20
small dict (0003_as_tupl) 533.3333 (1.66) 5,666.6667 (1.89) 708.6809 (1.70) 225.9399 (1.85) 666.6667 (1.70) 66.6667 (1.53) 10403;13348 1,411,072.2913 (0.59) 100001 15
small dict (0002_as_tupl) 550.0000 (1.71) 3,700.0000 (1.23) 700.6349 (1.68) 205.5615 (1.69) 650.0000 (1.65) 100.0000 (2.30) 5970;7185 1,427,276.8962 (0.60) 71429 20
empty list (0003_as_tupl) 1,000.0000 (3.11) 207,000.0000 (69.00) 1,689.0331 (4.05) 1,437.0416 (11.79) 2,000.0000 (5.09) 1,000.0000 (23.00) 1320;1320 592,054.7053 (0.25) 100001 1
empty list (0001_as_list) 1,000.0000 (3.11) 45,000.0000 (15.00) 1,641.5470 (3.94) 1,328.2244 (10.90) 1,000.0000 (2.55) 1,000.0000 (23.00) 1020;60 609,181.4551 (0.25) 12049 1
empty list (0002_as_tupl) 1,000.0000 (3.11) 113,000.0000 (37.67) 1,702.8230 (4.08) 1,199.5270 (9.84) 2,000.0000 (5.09) 1,000.0000 (23.00) 11261;635 587,260.1066 (0.24) 100001 1
empty tuple (0001_as_list) 1,000.0000 (3.11) 42,000.0000 (14.00) 1,540.6624 (3.69) 1,034.3056 (8.49) 1,000.0000 (2.55) 1,000.0000 (23.00) 725;22 649,071.4755 (0.27) 10870 1
empty tuple (0002_as_tupl) 1,000.0000 (3.11) 3,000.0000 (1.0) 1,568.0000 (3.76) 703.8163 (5.78) 1,000.0000 (2.55) 1,000.0000 (23.00) 31;0 637,755.1020 (0.27) 250 1
empty tuple (0003_as_tupl) 1,000.0000 (3.11) 41,000.0000 (13.67) 1,587.4640 (3.81) 1,319.3553 (10.83) 1,000.0000 (2.55) 1,000.0000 (23.00) 728;48 629,935.5595 (0.26) 10753 1
small immutableset (0001_as_list) 2,000.0000 (6.22) 48,000.0000 (16.00) 3,941.4765 (9.45) 1,848.8203 (15.17) 4,000.0000 (10.18) 1,000.0000 (23.00) 6587;6424 253,712.0310 (0.11) 83334 1
small set (0001_as_list) 2,000.0000 (6.22) 67,000.0000 (22.33) 3,459.0375 (8.30) 1,651.5556 (13.55) 3,000.0000 (7.64) 1,000.0000 (23.00) 653;653 289,097.7627 (0.12) 76924 1
small set (0002_as_tupl) 2,000.0000 (6.22) 75,000.0000 (25.00) 3,608.8161 (8.65) 1,587.0947 (13.03) 3,000.0000 (7.64) 1,000.0000 (23.00) 754;464 277,099.1827 (0.12) 58824 1
small set (0003_as_tupl) 2,000.0000 (6.22) 73,000.0000 (24.33) 3,631.9142 (8.71) 1,750.5681 (14.37) 3,000.0000 (7.64) 1,000.0000 (23.00) 1611;1611 275,336.9002 (0.11) 71429 1
empty immutableset (0002_as_tupl) 2,000.0000 (6.22) 59,000.0000 (19.67) 4,013.0859 (9.62) 2,064.9497 (16.95) 4,000.0000 (10.18) 1,000.0000 (23.00) 3046;5810 249,184.7985 (0.10) 55556 1
empty immutableset (0003_as_tupl) 2,000.0000 (6.22) 67,000.0000 (22.33) 3,565.9883 (8.55) 1,614.9153 (13.25) 3,000.0000 (7.64) 1,000.0000 (23.00) 422;422 280,427.1648 (0.12) 45455 1
empty set (0002_as_tupl) 2,000.0000 (6.22) 58,000.0000 (19.33) 3,597.1705 (8.63) 1,672.4016 (13.73) 3,000.0000 (7.64) 1,000.0000 (23.00) 903;903 277,996.2772 (0.12) 37038 1
empty set (0003_as_tupl) 2,000.0000 (6.22) 58,000.0000 (19.33) 3,619.1095 (8.68) 1,779.5979 (14.61) 3,000.0000 (7.64) 1,000.0000 (23.00) 1080;1080 276,311.0632 (0.12) 40001 1
small immutableset (0002_as_tupl) 2,000.0000 (6.22) 56,000.0000 (18.67) 4,122.0800 (9.89) 2,038.6532 (16.73) 4,000.0000 (10.18) 1,000.0000 (23.00) 3795;7099 242,595.9710 (0.10) 62500 1
empty immutableset (0001_as_list) 2,000.0000 (6.22) 55,000.0000 (18.33) 4,032.8317 (9.67) 2,194.1766 (18.01) 4,000.0000 (10.18) 1,000.0000 (23.00) 2911;5781 247,964.7218 (0.10) 52632 1
empty set (0001_as_list) 2,000.0000 (6.22) 55,000.0000 (18.33) 3,392.9081 (8.14) 1,932.2272 (15.86) 3,000.0000 (7.64) 1,000.0000 (23.00) 110;110 294,732.4121 (0.12) 8404 1
empty immutabledict (0003_as_tupl) 3,000.0000 (9.33) 73,000.0000 (24.33) 4,130.2814 (9.90) 1,971.6079 (16.18) 4,000.0000 (10.18) 1,000.0000 (23.00) 927;1464 242,114.2543 (0.10) 35715 1
small immutableset (0003_as_tupl) 3,000.0000 (9.33) 59,000.0000 (19.67) 3,667.9640 (8.80) 1,669.8933 (13.71) 3,000.0000 (7.64) 1,000.0000 (23.00) 696;696 272,630.8116 (0.11) 71429 1
empty immutabledict (0001_as_list) 4,000.0000 (12.44) 116,000.0000 (38.67) 5,683.3238 (13.63) 2,419.9994 (19.86) 5,000.0000 (12.73) 1,000.0000 (23.00) 745;1418 175,953.3743 (0.07) 38462 1
empty immutabledict (0002_as_tupl) 4,000.0000 (12.44) 66,000.0000 (22.00) 5,808.6638 (13.93) 2,331.1851 (19.13) 5,000.0000 (12.73) 1,000.0000 (23.00) 1066;1479 172,156.6319 (0.07) 33334 1
small immutabledict (0001_as_list) 6,000.0000 (18.67) 99,000.0000 (33.00) 7,406.5051 (17.76) 2,841.3192 (23.32) 7,000.0000 (17.82) 2,000.0000 (46.00) 1236;1236 135,016.4462 (0.06) 38462 1
small immutabledict (0002_as_tupl) 6,000.0000 (18.67) 107,000.0000 (35.67) 7,427.7914 (17.81) 2,604.1426 (21.37) 7,000.0000 (17.82) 1,000.0000 (23.00) 551;617 134,629.5204 (0.06) 33334 1
small immutabledict (0003_as_tupl) 6,000.0000 (18.67) 91,000.0000 (30.33) 8,101.1328 (19.43) 3,177.0271 (26.07) 7,000.0000 (17.82) 1,000.0000 (23.00) 1103;2353 123,439.5274 (0.05) 20834 1
big set (0003_as_tupl) 1,895,000.0000 (>1000.0) 4,882,000.0000 (>1000.0) 2,232,186.5285 (>1000.0) 367,074.6857 (>1000.0) 2,141,500.0000 (>1000.0) 146,000.0000 (>1000.0) 36;46 447.9912 (0.00) 386 1
big set (0001_as_list) 1,898,000.0000 (>1000.0) 4,898,000.0000 (>1000.0) 2,206,738.0952 (>1000.0) 355,174.4619 (>1000.0) 2,125,500.0000 (>1000.0) 146,000.0000 (>1000.0) 29;36 453.1575 (0.00) 336 1
big set (0002_as_tupl) 1,917,000.0000 (>1000.0) 5,302,000.0000 (>1000.0) 2,242,144.4444 (>1000.0) 322,496.9197 (>1000.0) 2,180,000.0000 (>1000.0) 139,500.0000 (>1000.0) 22;25 446.0016 (0.00) 360 1
big tuple (0001_as_list) 2,012,000.0000 (>1000.0) 10,097,000.0000 (>1000.0) 2,567,786.4078 (>1000.0) 886,381.3343 (>1000.0) 2,348,000.0000 (>1000.0) 171,750.0000 (>1000.0) 21;37 389.4405 (0.00) 309 1
big tuple (0003_as_tupl) 2,028,000.0000 (>1000.0) 7,744,000.0000 (>1000.0) 2,614,075.9076 (>1000.0) 903,826.6354 (>1000.0) 2,321,000.0000 (>1000.0) 297,500.0000 (>1000.0) 21;40 382.5444 (0.00) 303 1
big list (0001_as_list) 2,055,000.0000 (>1000.0) 9,511,000.0000 (>1000.0) 2,585,831.5018 (>1000.0) 869,889.9065 (>1000.0) 2,363,000.0000 (>1000.0) 204,000.0000 (>1000.0) 21;33 386.7228 (0.00) 273 1
big immutableset (0003_as_tupl) 2,077,000.0000 (>1000.0) 4,635,000.0000 (>1000.0) 2,385,144.9814 (>1000.0) 251,134.1241 (>1000.0) 2,340,000.0000 (>1000.0) 168,750.0000 (>1000.0) 20;9 419.2617 (0.00) 269 1
big list (0002_as_tupl) 2,084,000.0000 (>1000.0) 7,823,000.0000 (>1000.0) 2,671,617.9775 (>1000.0) 882,491.7709 (>1000.0) 2,424,000.0000 (>1000.0) 239,250.0000 (>1000.0) 19;31 374.3050 (0.00) 267 1
big immutableset (0001_as_list) 2,092,000.0000 (>1000.0) 6,013,000.0000 (>1000.0) 2,571,020.8333 (>1000.0) 594,049.9001 (>1000.0) 2,372,000.0000 (>1000.0) 298,500.0000 (>1000.0) 10;12 388.9506 (0.00) 96 1
big tuple (0002_as_tupl) 2,125,000.0000 (>1000.0) 8,160,000.0000 (>1000.0) 2,685,837.2881 (>1000.0) 830,883.5110 (>1000.0) 2,402,000.0000 (>1000.0) 325,250.0000 (>1000.0) 28;38 372.3234 (0.00) 295 1
big immutableset (0002_as_tupl) 2,138,000.0000 (>1000.0) 8,428,000.0000 (>1000.0) 2,797,752.8090 (>1000.0) 1,039,676.1152 (>1000.0) 2,411,000.0000 (>1000.0) 388,000.0000 (>1000.0) 20;26 357.4297 (0.00) 178 1
big list (0003_as_tupl) 2,157,000.0000 (>1000.0) 8,388,000.0000 (>1000.0) 2,669,872.8324 (>1000.0) 782,713.4045 (>1000.0) 2,438,000.0000 (>1000.0) 260,000.0000 (>1000.0) 24;39 374.5497 (0.00) 346 1
big dict (0001_as_list) 4,731,000.0000 (>1000.0) 15,454,000.0000 (>1000.0) 5,613,361.1111 (>1000.0) 1,522,508.8886 (>1000.0) 5,246,500.0000 (>1000.0) 370,000.0000 (>1000.0) 12;21 178.1464 (0.00) 180 1
big dict (0003_as_tupl) 4,775,000.0000 (>1000.0) 16,534,000.0000 (>1000.0) 5,673,593.2203 (>1000.0) 1,554,957.2939 (>1000.0) 5,276,000.0000 (>1000.0) 381,250.0000 (>1000.0) 10;18 176.2551 (0.00) 177 1
big dict (0002_as_tupl) 4,848,000.0000 (>1000.0) 15,437,000.0000 (>1000.0) 5,804,685.3933 (>1000.0) 1,475,630.0433 (>1000.0) 5,478,500.0000 (>1000.0) 322,000.0000 (>1000.0) 12;16 172.2746 (0.00) 178 1
big immutabledict (0001_as_list) 63,888,000.0000 (>1000.0) 93,477,000.0000 (>1000.0) 72,440,500.0000 (>1000.0) 8,989,737.1640 (>1000.0) 68,865,000.0000 (>1000.0) 4,390,000.0000 (>1000.0) 2;2 13.8044 (0.00) 10 1
big immutabledict (0003_as_tupl) 65,018,000.0000 (>1000.0) 126,291,000.0000 (>1000.0) 79,905,000.0000 (>1000.0) 20,266,743.6087 (>1000.0) 68,375,000.0000 (>1000.0) 18,380,000.0000 (>1000.0) 1;1 12.5149 (0.00) 9 1
big immutabledict (0002_as_tupl) 65,624,000.0000 (>1000.0) 91,055,000.0000 (>1000.0) 71,650,666.6667 (>1000.0) 8,429,522.5250 (>1000.0) 68,068,000.0000 (>1000.0) 7,392,000.0000 (>1000.0) 1;1 13.9566 (0.00) 9 1
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment