Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2023
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.60 KB | None | 0 0
  1. ##########################################################################
  2. benchmarking with 64 elements
  3. #insert
  4. indexmap took 7.446µs:
  5. hashmap took 5.628µs:
  6. std_vec took 781ns:
  7. linked-hash-map took 5.418µs:
  8.  
  9. #iterate
  10. indexmap took 78ns:
  11. vec took 79ns:
  12. hashmap took 222ns:
  13. linked-hashmap took 79ns:
  14. indexmap (values only) took 84ns:
  15.  
  16. #access
  17. indexmap took 1.977µs:
  18. vec took 2.679µs:
  19. hashmap took 2.002µs:
  20. linked-hashmap took 530ns:
  21.  
  22. #clone
  23. indexmap took 3.229µs - 64
  24. vec took 303ns - 64
  25. hashmap took 2.713µs - 64
  26. linked-hashmap took 5.235µs - 64
  27.  
  28. #push to back
  29. indexmap took 11.16µs:
  30. vec took 749ns:
  31. hashmap unsupported
  32. linked-hashmap took 443ns:
  33.  
  34. #remove (keep order)
  35. indexmap took 11.001µs:
  36. vec took 4.533µs:
  37. can't preserve order in hashmap.
  38. hashmap took 2.584µs:
  39. linked-hashmap took 4.446µs:
  40.  
  41. ##########################################################################
  42. benchmarking with 512 elements
  43. #insert
  44. indexmap took 38.92µs:
  45. hashmap took 36.4µs:
  46. std_vec took 2.351µs:
  47. linked-hash-map took 39.111µs:
  48.  
  49. #iterate
  50. indexmap took 83ns:
  51. vec took 75ns:
  52. hashmap took 992ns:
  53. linked-hashmap took 74ns:
  54. indexmap (values only) took 79ns:
  55.  
  56. #access
  57. indexmap took 9.573µs:
  58. vec took 69.015µs:
  59. hashmap took 9.322µs:
  60. linked-hashmap took 1.939µs:
  61.  
  62. #clone
  63. indexmap took 14.333µs - 512
  64. vec took 2.696µs - 512
  65. hashmap took 13.887µs - 512
  66. linked-hashmap took 75.951µs - 512
  67.  
  68. #push to back
  69. indexmap took 719.18µs:
  70. vec took 21.715µs:
  71. hashmap unsupported
  72. linked-hashmap took 2.983µs:
  73.  
  74. #remove (keep order)
  75. indexmap took 372.639µs:
  76. vec took 15.449µs:
  77. can't preserve order in hashmap.
  78. hashmap took 13.191µs:
  79. linked-hashmap took 12.977µs:
  80.  
  81. ##########################################################################
  82. benchmarking with 100000 elements
  83. #insert
  84. indexmap took 5.121151ms:
  85. hashmap took 6.516268ms:
  86. std_vec took 144.792µs:
  87. linked-hash-map took 8.548027ms:
  88.  
  89. #iterate
  90. indexmap took 47ns:
  91. vec took 38ns:
  92. hashmap took 105.573µs:
  93. linked-hashmap took 41ns:
  94. indexmap (values only) took 40ns:
  95.  
  96. #access
  97. indexmap took 2.543214ms:
  98. vec took 2.447872487s:
  99. hashmap took 2.793451ms:
  100. linked-hashmap took 1.026799ms:
  101.  
  102. #clone
  103. indexmap took 1.967149ms - 100000
  104. vec took 453.961µs - 100000
  105. hashmap took 1.173746ms - 100000
  106. linked-hashmap took 8.726053ms - 100000
  107.  
  108. #push to back
  109. indexmap took 20.420952628s:
  110. vec took 1.784034195s:
  111. hashmap unsupported
  112. linked-hashmap took 1.481067ms:
  113.  
  114. #remove (keep order)
  115. indexmap took 17.82113988s:
  116. vec took 828.959382ms:
  117. can't preserve order in hashmap.
  118. hashmap took 3.428035ms:
  119. linked-hashmap took 2.025402ms:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement