fastv7
v1.0.2
Published
Fast UUID v7 generator with monotonic ordering
Maintainers
Readme
fastv7
Fast, spec-compliant UUIDv7 generator with monotonic ordering.
Install
npm install fastv7Usage
import { uuid } from "fastv7";
const id = uuid();
// → 019b3ae7-0184-799d-babe-a5a0bb7f263fBenchmark
500k iterations on M-series hardware:
| Generator | ms | ops/sec |
| --------------------- | ----: | ---------- |
| crypto.randomUUID | 20.46 | 24,432,455 |
| fastv7 | 27.36 | 18,276,941 |
| uuidv7 (uuidv7 pkg) | 77.67 | 6,437,388 |
| uuid v7 (uuid pkg) | 100.2 | 4,989,267 |
~3× faster than uuidv7, ~4× faster than uuid.
License
MIT
