# Tinybench: 8.2 out of 10

A strong pick. 1st of 8 in [Benchmarks and load testing](https://elestia.ai/opensource/benchmarks/index.md).

Tinybench is a small micro-benchmark library with no dependencies. It runs on Node, Bun, Deno and browsers, and it powers Vitest's benchmarking. It is very actively maintained, and with mitata stalled and Benchmark.js archived, it is the safest pick today for timing JavaScript code. It does not do server load testing.

**Best for:** Developers who want maintained, cross-runtime micro-benchmarks in a script or through `vitest bench`.

## Scores

- **Overall: 8.2** (likely 7.1 to 8.9)
  - Claude Opus 5.5 (8.0): It is the best-maintained general micro-benchmark library for JavaScript, works across runtimes and is backed by Vitest. Its main rivals are stalled (mitata) or archived (Benchmark.js). Mitata still edges it on low-level measurement detail, and it does not cover load testing, which keeps it from a 9.
  - GPT-6.2 Sol (8.3): Tinybench is the strongest general-purpose microbenchmarking pick among these peers for a new JavaScript or TypeScript project. Its typed API, detailed statistics, active releases, and use in Vitest carry more weight than its download count. Mitata is worth considering for nanosecond-scale work, and Artillery is better suited to server load scenarios. Sparse direct adoption and current accuracy data keep the range wide.
- **Needed by many: 4.2** (likely 3.1 to 5.3)
  - Claude Opus 5.5 (4.0): Micro-benchmarking is a recurring but niche need. Library authors and performance-focused developers need it, while most app developers rarely do. It covers only the code-timing half of the category, not load testing.
  - GPT-6.2 Sol (4.3): Function benchmarks are useful for library authors and application teams investigating hot paths. Tinybench works across JavaScript runtimes, while server capacity testing calls for a tool that can model user traffic. The share of developers who need dedicated microbenchmarks is hard to estimate.
- **Helps a lot: 7.7** (likely 6.7 to 8.7)
  - Claude Opus 5.5 (7.0): It is a solid, well-typed, cross-runtime API with hooks, concurrency, statistical output and timer diagnostics, and recent releases keep refining its accuracy and speed. Mitata and bench-node offer finer control over JIT and GC noise for deep tuning. Its output is also bare by default.
  - GPT-6.2 Sol (8.4): Version 6.2.4 gives teams warmup, sync and async tasks, latency and throughput statistics, and warnings when the timer cannot resolve fast operations. The small typed API and examples give coding agents a clear starting point. Tinybench times individual calls by default, so very short operations can need manual batching. Mitata's author illustrates that timing gap on a small workload, with limited evidence for how large it is on current workloads.
- **Holds up over time: 8.0** (likely 6.8 to 9.0)
  - Claude Opus 5.5 (8.0): It has 371 commits, 20 releases and 44 contributors in the last year, and issues are handled quickly (10 open against 72 closed). Vitest depends on it, which keeps it relevant and maintained. Volunteers run it with no clear funding, and v6 brought a breaking major, which keeps the score below the top.
  - GPT-6.2 Sol (7.9): Tinybench recorded 371 commits and 20 GitHub releases in the past year, with recent fixes from several contributors. A reported TypeScript declaration regression was fixed in 6.1.6, and active maintenance gives it an edge over mitata and the archived Benchmark.js. Version 6 removed older result fields and event types, and long-term funding and release ownership remain unclear.
- **Used widely: 6.4** (likely 5.3 to 7.6)
  - Claude Opus 5.5 (7.0): It has 653M downloads in 4 weeks, up about 10.5x on a year ago, far above the 4.1x median. Most of that comes from Vitest installs, not direct choices. Even so, its 21.7k dependent repos and Vitest's bench feature put it in front of far more developers than any active peer.
  - GPT-6.2 Sol (5.8): Four-week npm downloads rose 10.52 times year over year, well above the catalog median of 4.1 times. Vitest installs Tinybench even for projects that never run a benchmark, so that growth is a stronger signal for distribution than for direct adoption. The tracker found 21,733 dependent repositories and 59 packages, ahead of mitata and below Benchmark.js. Sparse public discussion and incomplete repository coverage leave direct adoption growth uncertain.
- **Vouched for: 6.6** (likely 5.0 to 7.6)
  - Claude Opus 5.5 (6.0): Vitest builds its benchmark feature on it, and the CodSpeed Vitest plugin works on top of that, which are strong current endorsements. Independent accuracy comparisons and survey data are scarce, and I found no Hacker News or Reddit discussion.
  - GPT-6.2 Sol (7.1): Vitest uses Tinybench as its built-in benchmark engine, CodSpeed supports version 6, and ESLint Rule Benchmark uses it to measure rule performance. An independent benchmarking write-up identifies it as a modern option that reports percentiles. State of JavaScript measures Vitest adoption, so it gives only indirect support. Direct satisfaction and independent accuracy measurements for the current Tinybench release are scarce.
- **Safe: 8.3** (likely 7.2 to 9.3)
  - Claude Opus 5.5 (8.0): It has no dependencies, no advisories and an MIT licence. Its attack surface is small, and it usually runs only as a dev dependency. There is no OpenSSF Scorecard, and its wide transitive install base through Vitest makes it a valuable target, so release hygiene matters.
  - GPT-6.2 Sol (8.6): Tinybench has zero runtime dependencies, a permissive MIT license, and no recorded OSV advisories. Its tag-triggered GitHub Actions release workflow runs type checks and tests before npm publishing and uses actions pinned to commit hashes. The missing OpenSSF Scorecard and published security policy, along with uncertainty over who can publish, limit confidence in the release controls.

## Good

- It has no dependencies, ships its own types and runs on Node, Bun, Deno and browsers.
- It is very active, with 371 commits and 20 releases in the last year.
- Vitest's benchmark feature is built on it, so many teams already have it installed.
- It reports rich statistics (mean, percentiles, margin of error) and warns about timer-resolution problems.

## Bad

- It prints nothing by default, so you must log `bench.table()` or read the results yourself.
- Mitata handles JIT and GC noise more carefully and gives richer output for low-level tuning.
- It only measures code speed and cannot load-test a server, so you still need autocannon or Artillery for that.
- Its huge download count comes mostly from Vitest, not from people choosing it directly.

## The numbers

- Downloads, 4 weeks: 653M
- In a year: ×11
- GitHub stars: 2.4k
- Commits, 12 months: 371
- Last npm release: Nov 2026
- Advisories, 24 months: 0
- Licence: MIT
- GitHub: https://github.com/tinylibs/tinybench
- npm: https://www.npmjs.com/package/tinybench

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
