Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

fastv7

Fast, spec-compliant UUIDv7 generator with monotonic ordering.

Install

npm install fastv7
bun add fastv7

Usage

import { uuid } from "fastv7";
const id = uuid();
// → 019b3ae7-0184-799d-babe-a5a0bb7f263f

Benchmark

500k iterations on M-series hardware:

Generator ms ops/sec
crypto.randomUUID 19.92 25,101,662
fastv7 27.35 18,279,698
uuidv7 (uuidv7 pkg) 75.11 6,657,276
uuid v7 (uuid pkg) 98.69 5,066,624

×ばつ faster than uuidv7, ×ばつ faster than uuid.

About

Fast UUID v7 generator with monotonic ordering

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /