Advertisement
Guest User

Hash function performance comparison

a guest
Dec 16th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.71 KB | None | 0 0
  1. x86 (32 bit) Binary compiled using VS2015 with VC14 tools with default compiler settings.
  2. CPU: Intel I7-3820 3.60GHz
  3. 10,000 different buffers with the same size for each test.
  4.  
  5.  
  6. ----------------------------------------
  7. Filling up random buffers
  8.  
  9. Count: 10000
  10. Size: 4
  11.  
  12. Murmur3: 17.6293 milliseconds
  13.  
  14. Fast hash: 14.4364 milliseconds
  15.  
  16. SoftwareCRC32: 27.0384 milliseconds
  17.  
  18. HardwareCRC32: 3.6736 milliseconds
  19.  
  20. ----------------------------------------
  21. Filling up random buffers
  22.  
  23. Count: 10000
  24. Size: 8
  25.  
  26. Murmur3: 17.9894 milliseconds
  27.  
  28. Fast hash: 18.7867 milliseconds
  29.  
  30. SoftwareCRC32: 18.1919 milliseconds
  31.  
  32. HardwareCRC32: 3.95519 milliseconds
  33.  
  34. ----------------------------------------
  35. Filling up random buffers
  36.  
  37. Count: 10000
  38. Size: 16
  39.  
  40. Murmur3: 27.8018 milliseconds
  41.  
  42. Fast hash: 26.8086 milliseconds
  43.  
  44. SoftwareCRC32: 31.29 milliseconds
  45.  
  46. HardwareCRC32: 7.45869 milliseconds
  47.  
  48. ----------------------------------------
  49. Filling up random buffers
  50.  
  51. Count: 10000
  52. Size: 32
  53.  
  54. Murmur3: 43.4946 milliseconds
  55.  
  56. Fast hash: 53.6095 milliseconds
  57.  
  58. SoftwareCRC32: 54.5635 milliseconds
  59.  
  60. HardwareCRC32: 8.97279 milliseconds
  61.  
  62. ----------------------------------------
  63. Filling up random buffers
  64.  
  65. Count: 10000
  66. Size: 128
  67.  
  68. Murmur3: 72.4212 milliseconds
  69.  
  70. Fast hash: 95.7624 milliseconds
  71.  
  72. SoftwareCRC32: 195.608 milliseconds
  73.  
  74. HardwareCRC32: 27.1311 milliseconds
  75.  
  76. ----------------------------------------
  77. Filling up random buffers
  78.  
  79. Count: 10000
  80. Size: 512
  81.  
  82. Murmur3: 316.117 milliseconds
  83.  
  84. Fast hash: 449.072 milliseconds
  85.  
  86. SoftwareCRC32: 653.726 milliseconds
  87.  
  88. HardwareCRC32: 221.175 milliseconds
  89.  
  90. ----------------------------------------
  91. Filling up random buffers
  92.  
  93. Count: 10000
  94. Size: 1024
  95.  
  96. Murmur3: 694.789 milliseconds
  97.  
  98. Fast hash: 993.418 milliseconds
  99.  
  100. SoftwareCRC32: 1.06301 seconds
  101.  
  102. HardwareCRC32: 384.616 milliseconds
  103.  
  104. ----------------------------------------
  105. Filling up random buffers
  106.  
  107. Count: 10000
  108. Size: 4096
  109.  
  110. Murmur3: 2.57337 seconds
  111.  
  112. Fast hash: 4.51371 seconds
  113.  
  114. SoftwareCRC32: 4.85095 seconds
  115.  
  116. HardwareCRC32: 1.38252 seconds
  117.  
  118. ----------------------------------------
  119. Filling up random buffers
  120.  
  121. Count: 10000
  122. Size: 8192
  123.  
  124. Murmur3: 4.61483 seconds
  125.  
  126. Fast hash: 7.14394 seconds
  127.  
  128. SoftwareCRC32: 6.66598 seconds
  129.  
  130. HardwareCRC32: 2.07877 seconds
  131.  
  132. ----------------------------------------
  133. Filling up random buffers
  134.  
  135. Count: 10000
  136. Size: 16384
  137.  
  138. Murmur3: 7.14782 seconds
  139.  
  140. Fast hash: 15.3714 seconds
  141.  
  142. SoftwareCRC32: 17.9608 seconds
  143.  
  144. HardwareCRC32: 6.04197 seconds
  145.  
  146. ----------------------------------------
  147. Filling up random buffers
  148.  
  149. Count: 10000
  150. Size: 65536
  151.  
  152. Murmur3: 36.7858 seconds
  153.  
  154. Fast hash: 59.9867 seconds
  155.  
  156. SoftwareCRC32: 72.7236 seconds
  157.  
  158. HardwareCRC32: 21.2487 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement