Docs

Benchmarks

Run

cd js
npm test
npm run bench

Sample (Node 24)

Wiji (string): ~650k IDs/sec
Wiji (binary): ~1.57M IDs/sec
UUID v4      : ~3.9M IDs/sec
ULID (lib)   : ~29k IDs/sec

Sample throughput

Log-scaled bar length (longer = higher). Numbers from docs; rerun npm run bench locally.

Benchmark comparison: IDs per second (sample, log-scaled)Wiji (Base32 string)650k/sWiji (binary)1.57M/sUUID v4 (random)3.90M/sULID (reference lib)29k/s

Numbers change with CPU, Node version, and comparison libraries. Wiji prioritizes ordering (time-ordered + monotonic per generator) and deterministic encodings, not raw throughput alone.