From 21fbc722af62dbe5635cfbc0da3afe057441c6d4 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Wed, 15 Jul 2026 15:19:30 +0100 Subject: [PATCH] docs: use package name --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ee693e3..e7c0245 100644 --- a/README.md +++ b/README.md @@ -63,16 +63,16 @@ Run `pnpm bench` (uses [mitata](https://github.com/evanwashere/mitata)). Indicat | | width | short key | 1 KB string | | --- | --- | --- | --- | -| `fnv1a64` (lanes) | 64 | **~42 ns** | ~2.7 µs | -| `fnv1a64Base36` | 64 | ~98 ns | ~2.8 µs | -| `fnv1a64Hex` | 64 | ~339 ns | ~3.0 µs | +| `fnv1a-64` | 64 | **~42 ns** | ~2.7 µs | +| `fnv1a-64` (base 36) | 64 | ~98 ns | ~2.8 µs | +| `fnv1a-64` (hex) | 64 | ~339 ns | ~3.0 µs | | `fnv-plus` `fast1a64` | 64 | ~63 ns | **~1.7 µs** | | `murmurhash` v3 | 32 | ~257 ns | ~1.7 µs | | `@sindresorhus/fnv1a` | 64 | ~714 ns | ~29 µs | | `fnv-lite` `hex` | 128 | ~5.6 µs | ~297 µs | | `xxhashjs` `h64` | 64 | ~34 µs | ~59 µs | -The `fnv1a64` core wins short keys outright (our main use in Nuxt). +The `fnv1a-64` core wins short keys outright (our main use in Nuxt). `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. `murmurhash` is faster than 64-bit alternatives but is 32-bit, so it collides. `fnv-lite` and `xxhashjs` pay a large constant cost for their byte-array / `cuint` internals. -- 2.51.2