Willy Tarreau | ae5f7da | 2007-05-13 11:40:04 +0200 | [diff] [blame] | 1 | Test: ./test_hashes | sort -k 3 -r |
| 2 | |
| 3 | Note: haproxy_server_hash should be avoided as it's just a 32 bit XOR. |
| 4 | |
| 5 | Athlon @ 1533 MHz, gcc-3.4 -march=i686 : |
| 6 | haproxy_server_hash : 18477000 run/sec |
| 7 | SuperFastHash : 6983511 run/sec |
| 8 | hash_djbx33 : 4164334 run/sec |
| 9 | bernstein : 3371838 run/sec |
| 10 | kr_hash : 3257684 run/sec |
| 11 | sax_hash : 3027567 run/sec |
| 12 | fnv_hash : 2818374 run/sec |
| 13 | haproxy_uri_hash : 2108346 run/sec |
| 14 | oat_hash : 2106181 run/sec |
| 15 | hashword : 1936973 run/sec |
| 16 | hashpjw : 1803475 run/sec |
| 17 | fnv_32a_str : 1499198 run/sec |
| 18 | |
| 19 | Pentium-M @1700 MHz, gcc-3.4 -march=i686 : |
| 20 | haproxy_server_hash : 15471737 run/sec |
| 21 | SuperFastHash : 8155706 run/sec |
| 22 | hash_djbx33 : 4520191 run/sec |
| 23 | bernstein : 3956142 run/sec |
| 24 | kr_hash : 3725125 run/sec |
| 25 | fnv_hash : 3155413 run/sec |
| 26 | sax_hash : 2688323 run/sec |
| 27 | oat_hash : 2452789 run/sec |
| 28 | haproxy_uri_hash : 2010853 run/sec |
| 29 | hashword : 1831441 run/sec |
| 30 | hashpjw : 1737000 run/sec |
| 31 | fnv_32a_str : 1643737 run/sec |
| 32 | |
| 33 | Athlon @ 1533 MHz, gcc-4.1 -march=i686 : |
| 34 | haproxy_server_hash : 13592089 run/sec |
| 35 | SuperFastHash2 : 8687957 run/sec |
| 36 | SuperFastHash : 7361242 run/sec |
| 37 | hash_djbx33 : 5741546 run/sec |
| 38 | bernstein : 3368909 run/sec |
| 39 | sax_hash : 3339880 run/sec |
| 40 | kr_hash : 3277230 run/sec |
| 41 | fnv_hash : 2832402 run/sec |
| 42 | hashword : 2500317 run/sec |
| 43 | haproxy_uri_hash : 2433241 run/sec |
| 44 | oat_hash : 2403118 run/sec |
| 45 | hashpjw : 1881229 run/sec |
| 46 | fnv_32a_str : 1815709 run/sec |
| 47 | |
| 48 | Pentium-M @1700 MHz, gcc-4.1 -march=i686 : |
| 49 | haproxy_server_hash : 14128788 run/sec |
| 50 | SuperFastHash2 : 8157119 run/sec |
| 51 | SuperFastHash : 7481027 run/sec |
| 52 | hash_djbx33 : 5660711 run/sec |
| 53 | bernstein : 3961493 run/sec |
| 54 | fnv_hash : 3590727 run/sec |
| 55 | kr_hash : 3389393 run/sec |
| 56 | sax_hash : 2667227 run/sec |
| 57 | oat_hash : 2348211 run/sec |
| 58 | hashword : 2278856 run/sec |
| 59 | haproxy_uri_hash : 2098022 run/sec |
| 60 | hashpjw : 1846583 run/sec |
| 61 | fnv_32a_str : 1661219 run/sec |
| 62 | |
| 63 | Pentium-M @600 MHz, gcc-4.1 -march=i686 : |
| 64 | haproxy_server_hash : 5318468 run/sec |
| 65 | SuperFastHash2 : 3126165 run/sec |
| 66 | SuperFastHash : 2729981 run/sec |
| 67 | hash_djbx33 : 2042181 run/sec |
| 68 | bernstein : 1422927 run/sec |
| 69 | fnv_hash : 1287736 run/sec |
| 70 | kr_hash : 1217924 run/sec |
| 71 | sax_hash : 949694 run/sec |
| 72 | oat_hash : 837279 run/sec |
| 73 | hashword : 812868 run/sec |
| 74 | haproxy_uri_hash : 747611 run/sec |
| 75 | hashpjw : 659890 run/sec |
| 76 | fnv_32a_str : 590895 run/sec |
| 77 | |
| 78 | athlon @ 1.5 GHz, gcc-2.95 -march=i686 : |
| 79 | haproxy_server_hash : 13592864 run/sec |
| 80 | SuperFastHash : 6931251 run/sec |
| 81 | bernstein : 4105179 run/sec |
| 82 | hash_djbx33 : 3920059 run/sec |
| 83 | kr_hash : 2985794 run/sec |
| 84 | fnv_hash : 2815457 run/sec |
| 85 | sax_hash : 2791358 run/sec |
| 86 | haproxy_uri_hash : 2786663 run/sec |
| 87 | oat_hash : 2237859 run/sec |
| 88 | hashword : 1985740 run/sec |
| 89 | hashpjw : 1757733 run/sec |
| 90 | fnv_32a_str : 1697299 run/sec |
| 91 | |
| 92 | Pentium-M @ 600 MHz, gcc-2.95 -march=i686 : |
| 93 | SuperFastHash : 2934387 run/sec |
| 94 | haproxy_server_hash : 2864668 run/sec |
| 95 | hash_djbx33 : 1498043 run/sec |
| 96 | bernstein : 1414993 run/sec |
| 97 | kr_hash : 1297907 run/sec |
| 98 | fnv_hash : 1260343 run/sec |
| 99 | sax_hash : 924764 run/sec |
| 100 | oat_hash : 854545 run/sec |
| 101 | haproxy_uri_hash : 790040 run/sec |
| 102 | hashword : 693501 run/sec |
| 103 | hashpjw : 647346 run/sec |
| 104 | fnv_32a_str : 579691 run/sec |
| 105 | |
| 106 | Pentium-M @ 1700 MHz, gcc-2.95 -march=i686 : |
| 107 | SuperFastHash : 8006127 run/sec |
| 108 | haproxy_server_hash : 7834162 run/sec |
| 109 | hash_djbx33 : 4186025 run/sec |
| 110 | bernstein : 3941492 run/sec |
| 111 | kr_hash : 3630713 run/sec |
| 112 | fnv_hash : 3507488 run/sec |
| 113 | sax_hash : 2528128 run/sec |
| 114 | oat_hash : 2395188 run/sec |
| 115 | haproxy_uri_hash : 2158924 run/sec |
| 116 | hashword : 1910992 run/sec |
| 117 | hashpjw : 1819894 run/sec |
| 118 | fnv_32a_str : 1629844 run/sec |
| 119 | |
| 120 | UltraSparc @ 400 MHz, gcc-3.4.3 : |
| 121 | haproxy_server_hash : 5573220 run/sec |
| 122 | SuperFastHash : 1372714 run/sec |
| 123 | bernstein : 1361733 run/sec |
| 124 | hash_djbx33 : 1090373 run/sec |
| 125 | sax_hash : 872499 run/sec |
| 126 | oat_hash : 730354 run/sec |
| 127 | kr_hash : 645431 run/sec |
| 128 | haproxy_uri_hash : 541157 run/sec |
| 129 | fnv_32a_str : 442608 run/sec |
| 130 | hashpjw : 434858 run/sec |
| 131 | fnv_hash : 401945 run/sec |
| 132 | hashword : 340594 run/sec |
| 133 | |
| 134 | UltraSparc @ 400 MHz, gcc-3.4.3 -mcpu=v9 : |
| 135 | haproxy_server_hash : 5671183 run/sec |
| 136 | bernstein : 1437122 run/sec |
| 137 | hash_djbx33 : 1376294 run/sec |
| 138 | SuperFastHash : 1306634 run/sec |
| 139 | sax_hash : 873650 run/sec |
| 140 | kr_hash : 801439 run/sec |
| 141 | oat_hash : 729920 run/sec |
| 142 | haproxy_uri_hash : 545341 run/sec |
| 143 | hashpjw : 472190 run/sec |
| 144 | fnv_32a_str : 443668 run/sec |
| 145 | hashword : 357295 run/sec |
| 146 | fnv_hash : 208823 run/sec |
| 147 | |
| 148 | |
| 149 | Alpha EV6 @ 466 MHz, gcc-3.3 : |
| 150 | haproxy_server_hash : 2495928 run/sec |
| 151 | SuperFastHash : 2037208 run/sec |
| 152 | hash_djbx33 : 1625092 run/sec |
| 153 | kr_hash : 1532206 run/sec |
| 154 | bernstein : 1256746 run/sec |
| 155 | haproxy_uri_hash : 999106 run/sec |
| 156 | oat_hash : 841943 run/sec |
| 157 | sax_hash : 737447 run/sec |
| 158 | hashpjw : 676170 run/sec |
| 159 | fnv_hash : 644054 run/sec |
| 160 | fnv_32a_str : 638526 run/sec |
| 161 | hashword : 421777 run/sec |
| 162 | |
| 163 | VIA EPIA @ 533 MHz, gcc-2.95 -march=i586 : |
| 164 | haproxy_server_hash : 1391374 run/sec |
| 165 | SuperFastHash : 912397 run/sec |
| 166 | hash_djbx33 : 589868 run/sec |
| 167 | kr_hash : 453706 run/sec |
| 168 | bernstein : 437318 run/sec |
| 169 | sax_hash : 334456 run/sec |
| 170 | hashpjw : 316670 run/sec |
| 171 | hashword : 315476 run/sec |
| 172 | haproxy_uri_hash : 311112 run/sec |
| 173 | oat_hash : 259127 run/sec |
| 174 | fnv_32a_str : 229485 run/sec |
| 175 | fnv_hash : 151620 run/sec |
| 176 | |
| 177 | VIA EPIA @ 533 MHz, gcc-3.4 -march=i586 : |
| 178 | haproxy_server_hash : 1660407 run/sec |
| 179 | SuperFastHash : 791981 run/sec |
| 180 | hash_djbx33 : 680498 run/sec |
| 181 | kr_hash : 384076 run/sec |
| 182 | bernstein : 377247 run/sec |
| 183 | sax_hash : 355183 run/sec |
| 184 | hashpjw : 298879 run/sec |
| 185 | haproxy_uri_hash : 296748 run/sec |
| 186 | oat_hash : 283932 run/sec |
| 187 | hashword : 269429 run/sec |
| 188 | fnv_32a_str : 204776 run/sec |
| 189 | fnv_hash : 155301 run/sec |
| 190 | |
| 191 | Pentium @ 133 MHz, gcc-3.4 -march=i586 : |
| 192 | haproxy_server_hash : 930788 run/sec |
| 193 | SuperFastHash : 344988 run/sec |
| 194 | hash_djbx33 : 278996 run/sec |
| 195 | bernstein : 211545 run/sec |
| 196 | sax_hash : 185225 run/sec |
| 197 | kr_hash : 156603 run/sec |
| 198 | oat_hash : 135163 run/sec |
| 199 | hashword : 128518 run/sec |
| 200 | fnv_hash : 107024 run/sec |
| 201 | haproxy_uri_hash : 105523 run/sec |
| 202 | fnv_32a_str : 99913 run/sec |
| 203 | hashpjw : 97860 run/sec |
| 204 | |
| 205 | VAX VLC4000 @30 MHz, gcc-2.95 : |
| 206 | haproxy_server_hash : 13208 run/sec |
| 207 | hash_djbx33 : 12963 run/sec |
| 208 | fnv_hash : 12150 run/sec |
| 209 | SuperFastHash : 12037 run/sec |
| 210 | bernstein : 11765 run/sec |
| 211 | kr_hash : 11111 run/sec |
| 212 | sax_hash : 7273 run/sec |
| 213 | hashword : 7143 run/sec |
| 214 | oat_hash : 6931 run/sec |
| 215 | hashpjw : 6667 run/sec |
| 216 | haproxy_uri_hash : 5714 run/sec |
| 217 | fnv_32a_str : 4800 run/sec |
| 218 | |