Skip to content

Benchmarks

All benchmarks run on Node.js with tinybench. Results are reproducible — run pnpm bench locally to verify.

Utilityvs lodashvs radashvs native
arrayToHash / keyByon paron paron par
chunk4.9x fasteron paron par
groupBy1.3x fasteron par1.1x slower
unique (by key)2.7x faster1.6x fasteron par
pick3.3x fasteron par
  • Machine: arm64
  • Runtime: Node.js v25.2.1
  • OS: darwin 24.3.0
  • Benchmark tool: tinybench v6
Terminal window
pnpm bench

This runs all benchmarks across multiple dataset sizes (small, medium, large) and outputs a comparison table.

Each utility has its own benchmark file at src/<category>/<util-name>/index.bench.ts. Benchmarks compare against lodash, radash, and native JavaScript equivalents using the getDatasets() helper for consistent dataset sizes.

See the Contributing guide for the benchmark file template.