Elestia Open Source Ratings
2.9

Benchmark.js

Do not start with it. 7th of 8 benchmarks and load testing.

Benchmark.js is the classic JavaScript micro-benchmarking library behind jsPerf. Its repository was archived in April 2024, and its last npm release, 2.1.4, came out in 2017. Old code and test suites still install it, but for new work pick Tinybench or mitata, or Node's experimental built-in bench module.

Best for: Only projects that already run Benchmark.js suites and are not ready to port them yet.

WebsiteGitHubnpm

Scores

Overall2.9

How strongly do we recommend it for a new project today?

Claude Opus 5.5: 2.0, likely 1.0 to 3.0

It is archived, has had no release since 2017, ships no types, and loses ground every year. Maintained peers such as Tinybench do the same job with a similar API and modern features. Keep it only where it already runs, and use Tinybench or mitata for new benchmarks.

GPT-6.2 Sol: 3.8, likely 2.8 to 4.8

Keep Benchmark.js where its suite already works and continuity matters. For new microbenchmarks, Tinybench offers active maintenance, automatic warmup, and richer results. The archive makes that recommendation firm, while the value of keeping an existing suite depends on its tooling and measurement history.

Needed by many4.1

How many developers need a tool for this job?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Micro-benchmarking is a clear but limited need, mostly for library authors and developers tuning hot paths. Benchmark.js covers only the code-timing half of the category, not server load testing.

  • category.job: The category covers both code timing and load testing; this project covers only code timing
  • javascriptweekly.com/link/149917/rss: The article separates micro-benchmarking from macro-benchmarking

GPT-6.2 Sol: 4.2, likely 3.1 to 5.3

Function-level benchmarks help library authors and teams optimizing hot paths in browsers or Node.js. Its scope stops at code timing, and the share of JavaScript projects that need a dedicated microbenchmark suite is unclear.

Helps a lot5.0

How well does it do the job for those who need it?

Claude Opus 5.5: 4.0, likely 3.0 to 5.0

Its statistics and comparison tools still work, and the article calls it battle-tested. But it was built for 2017-era runtimes. It has no types, no ESM, a clumsy deferred API for async code, and no newer features such as Tinybench's hooks and concurrency or mitata's GC and memory reports. Its peers now do the same job better.

GPT-6.2 Sol: 6.0, likely 4.9 to 7.1

Version 2.1.4 provides documented suites, adaptive sampling, and margins of error. Tinybench offers automatic warmup and latency percentiles, while Benchmark.js requires deferred callbacks for async work and separate TypeScript types. Users report bundler friction, and independent timings vary enough across harnesses to leave room for different results by workload.

Holds up over time1.0

Will it still be a good choice in two years?

Claude Opus 5.5: 0.5, likely 0.0 to 1.5

The repository has been archived and read-only since April 2024. It has had no commits since December 2022 and no release since 2017. The ecosystem has moved to Tinybench (used by Vitest), mitata, and Node's experimental node:bench module.

GPT-6.2 Sol: 1.5, likely 0.7 to 2.4

The repository has been read-only since April 2024, and the last npm release was in March 2017. The archive makes future fixes unlikely, especially as the growing Vitest ecosystem uses Tinybench for its built-in benchmarks.

Used widely5.1

How many use it, and is that growing?

Claude Opus 5.5: 4.0, likely 3.0 to 5.5

It still has 2.9M downloads every 4 weeks and 208k dependent repositories, but most of that use comes from old codebases. Its download ratio of 1.41 is far below the 4.1 median, so it is losing ground fast. Tinybench now has more than 200 times as many downloads. Few new projects choose it.

  • npm downloadsLast4Weeks: 2.88M now versus 2.04M a year ago, a ratio of 1.41
  • medianDownloadsRatio: The median ratio is 4.1
  • dependents.repos: 208k dependent repositories, mostly legacy use
  • peers Tinybench downloadsLast4Weeks: Tinybench has 653M downloads and grew about 10x
  • bluesky posts: 0 posts in the last 24 months

GPT-6.2 Sol: 6.2, likely 4.9 to 7.4

Ecosyste.ms found about 208,000 dependent repositories, the most in the peer group, plus about 6,000 dependent packages. Four-week downloads rose from 2.04 million to 2.88 million, or 1.41× against the catalog median of 4.1×, so Benchmark.js lost relative ground. Repeat installs, indirect installs through tools such as Benny, and browser CDN use make fresh direct adoption hard to estimate.

Vouched for3.7

Who stands behind it being good?

Claude Opus 5.5: 3.0, likely 2.0 to 4.5

jsPerf and many libraries once relied on it, and writers still call it battle-tested. Those endorsements are old. It gets no current Hacker News or Bluesky attention, and today's tools are built on its successors rather than on it.

GPT-6.2 Sol: 4.3, likely 3.1 to 5.5

Sentry demonstrates Benchmark.js in a browser, and a library author documents continued use in existing suites. That author points to Tinybench and mitata for richer reporting today. The available survey covers adjacent test runners, leaving current satisfaction and adoption by production teams poorly measured.

Safe5.0

How safe is it to depend on?

Claude Opus 5.5: 5.0, likely 3.5 to 6.5

It has no known advisories, only two dependencies, and an MIT licence on npm. It is a dev-only tool, so it is rarely shipped to production. But it is archived, its Scorecard is 2.2, and nobody will fix a future advisory in it or in its lodash dependency.

  • advisories total: 0 advisories
  • scorecard score: 2.2 overall; Maintained 0, Security-Policy 0, Branch-Protection 0
  • npm dependencies: 2 dependencies
  • npm license: MIT

GPT-6.2 Sol: 5.0, likely 3.8 to 6.2

The package uses the permissive MIT license, has two direct dependencies, and has zero OSV advisories of its own in the snapshot. Its Lodash range accepts patched versions, though older lockfiles can retain affected versions. The 2.2 OpenSSF score reflects weak code review and a missing security policy. The archived repository and unverified npm publishing controls reduce confidence in future fixes.

Good

  • Its statistics are proven over many years: it reports ops/sec, relative margin of error and samples, and it compares the fastest and slowest tests.
  • It runs in browsers and in Node, and many old blog posts and Stack Overflow answers show how to use it.
  • It has only two dependencies (lodash and platform), has no known advisories, and uses the MIT licence.
  • Over 200,000 repositories depend on it, so existing benchmark scripts are easy to find.

Bad

  • The repository has been archived since April 2024, and the last release came out in March 2017, so bugs and issues will not be fixed.
  • It ships no TypeScript types and no ESM build. It handles async code through an old 'deferred' callback API, not promises.
  • Its download growth (1.4x a year) is far below the 4.1x median, while Tinybench grew about 10x.
  • Its OpenSSF Scorecard is 2.2, and the repository has no security policy and no branch protection.

The numbers

npm downloads, 4 weeks
2.9M +41% in a year
GitHub stars
5.4k
Commits, 12 months
0
npm version
2.1.4 Mar 2017
Versions, 12 months
0
Advisories, 24 months
0 of 0 ever
OpenSSF Scorecard
2.2 out of 10, Nov 2026
Licence
MIT

Read on 21 November 2026 from GitHub (bestiejs/benchmark.js), npm (benchmark), OSV and the OpenSSF Scorecard.

Benchmarks and load testing

  1. 8.2Tinybench
  2. 7.2Artillery
  3. 7.0autocannon
  4. 5.9bench-node
  5. 5.8mitata
  6. 5.20x
  7. 2.9Benchmark.js
  8. 2.9Clinic.js
Compare all 8 on six scores