A custom string hashing function written in JavaScript.
Version | Words | Runtime (Seconds) | Collisions | % |
---|---|---|---|---|
1 | 7,849,570 | 6.169 | 1,380 | 0.019460504060899532 |
2 | 7,849,570 | 6.853 | 98 | 0.0012484760311711341 |
I continued trying variations of the available operators in JS until I got the value as low as possible while not sacrificing too much runtime.