[READ-ONLY] Mirror of https://github.com/danielroe/fnv1a-64. Tiny, fast, dependency-free 64-bit FNV-1a string hash for Node and the browser.
64-bit fnv fnv-1a fnv1a hash non-cryptographic
0

Configure Feed

Select the types of activity you want to include in your feed.

docs: use package name

authored by

Daniel Roe and committed by
GitHub
(Jul 15, 2026, 3:19 PM +0100) 21fbc722 a0345668

+4 -4
+4 -4
README.md
··· 63 63 64 64 | | width | short key | 1 KB string | 65 65 | --- | --- | --- | --- | 66 - | `fnv1a64` (lanes) | 64 | **~42 ns** | ~2.7 µs | 67 - | `fnv1a64Base36` | 64 | ~98 ns | ~2.8 µs | 68 - | `fnv1a64Hex` | 64 | ~339 ns | ~3.0 µs | 66 + | `fnv1a-64` | 64 | **~42 ns** | ~2.7 µs | 67 + | `fnv1a-64` (base 36) | 64 | ~98 ns | ~2.8 µs | 68 + | `fnv1a-64` (hex) | 64 | ~339 ns | ~3.0 µs | 69 69 | `fnv-plus` `fast1a64` | 64 | ~63 ns | **~1.7 µs** | 70 70 | `murmurhash` v3 | 32 | ~257 ns | ~1.7 µs | 71 71 | `@sindresorhus/fnv1a` | 64 | ~714 ns | ~29 µs | 72 72 | `fnv-lite` `hex` | 128 | ~5.6 µs | ~297 µs | 73 73 | `xxhashjs` `h64` | 64 | ~34 µs | ~59 µs | 74 74 75 - The `fnv1a64` core wins short keys outright (our main use in Nuxt). 75 + The `fnv1a-64` core wins short keys outright (our main use in Nuxt). 76 76 `fnv-plus` is competitive (and faster on long strings) but ships ~9 KB gzipped for a whole multi-width toolkit rather than one function. This is less relevant if you're bundling or sharing the dependency. 77 77 `murmurhash` is faster than 64-bit alternatives but is 32-bit, so it collides. 78 78 `fnv-lite` and `xxhashjs` pay a large constant cost for their byte-array / `cuint` internals.