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.
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.
- github.com/bestiejs/benchmark.js: Archived April 2024
- summary.ecosyste.ms/projects/378361: ecosyste.ms flags it as archived, with the last push in December 2022
- peers Tinybench: An active, widely used successor
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.
- github.com/bestiejs/benchmark.js: Archived upstream
- github.com/tinylibs/tinybench: Modern microbenchmark API and statistics
- github.com/tinylibs/tinybench/releases: Active release history
- lukeed.com/blog/benchmarking: First-hand account of keeping existing Benchmark.js suites
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.
- benchmarkjs.com/docs: Function timing and suite API
- blog.sentry.io/frontend-javascript-performance-testing: Worked example for performance-critical browser code
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.
- npm hasTypes: No bundled TypeScript types
- npmjs.com/package/benchmark: Version 2.1.4 lists tests on Node 6-7 and PhantomJS
- javascriptweekly.com/link/149917/rss: The article calls it battle-tested but notes its last publish was in 2017
- github.com/tinylibs/tinybench: Tinybench offers a similar API with modern features
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.
- benchmarkjs.com/docs: Suite statistics, options, and deferred completion
- npm.hasTypes: No bundled TypeScript declarations
- github.com/bestiejs/benchmark.js/issues/244: User-reported Rollup import problem
- github.com/tinylibs/tinybench: Automatic warmup and percentile reporting
- github.com/3rd/js-benchmark-tool-comparison/blob/master/latest.txt: Independent comparison shows timing differences between harnesses
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.
- github.com/bestiejs/benchmark.js: GitHub shows the repository was archived by the owner on Apr 11, 2024
- npm latestPublishedAt: The last release was 2017-03-28
- github commitsLastYear: 0 commits in the last year
- nodejs.org/api/bench.html: Node now has an experimental built-in 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.
- github.com/bestiejs/benchmark.js: Archive date and read-only status
- npm.latestPublishedAt: Version 2.1.4 published in March 2017
- peers.Tinybench: 371 commits in the past year and a November 2026 release
- 2025.stateofjs.com/en-US/libraries/testing: Survey reports rising Vitest adoption
- main.vitest.dev/guide/benchmarking: Tinybench powers Vitest's 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.
- dependents and peers: 208,302 repositories and 6,032 packages tracked
- npm.downloadsLast4Weeks, npm.downloadsSame4WeeksYearAgo, medianDownloadsRatio: 1.41× year-over-year growth against a 4.1× baseline
- github.com/caderek/benny/blob/master/package.json: Benny installs Benchmark.js as a dependency
- blog.sentry.io/frontend-javascript-performance-testing: Browser example loads the package from a CDN
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.
- javascriptweekly.com/link/149917/rss: The article calls it great and battle-tested, but old
- hackerNews stories: No matching stories
- github.com/tinylibs/tinybench.old: Tinybench started as a library based on benchmark.js
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.
- blog.sentry.io/frontend-javascript-performance-testing: Sentry publishes a worked browser example
- lukeed.com/blog/benchmarking: Library author describes existing use and newer options
- 2025.stateofjs.com/en-US/libraries/testing: Test-runner survey provides no Benchmark.js satisfaction score
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.
- advisories.total: Zero OSV advisories for Benchmark.js
- scorecard.score and scorecard.checks: 2.2 overall, with weak review and no security policy
- github.com/bestiejs/benchmark.js/blob/2.1.4/package.json: MIT license and two direct dependencies
- github.com/lodash/lodash/releases: Patched Lodash releases fit the declared dependency range
- github.com/bestiejs/benchmark.js: Upstream repository is archived
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.