CodSpeed Docs home page
Search...
⌘K
Ask AI
Support
Dashboard
Dashboard
Search...
Navigation
Node.js
Writing Benchmarks in JavaScript and TypeScript
Documentation
Guides
API References
Blog
Community
p99.chat
Get Started
Quickstart
What is CodSpeed?
Creating Benchmarks
Python
Rust
C++
Node.js
Overview
vitest
tinybench
benchmark.js
Instruments
CPU
Walltime
Databases
Integrations
Repository Providers
CI Providers
Explore Features
Performance Checks
Impact Metrics
Sharded Benchmarks
Roles & Permissions
Customization
Ignoring a Benchmark
Security
Creating Benchmarks
Node.js
Writing Benchmarks in JavaScript and TypeScript
Copy page
Copy page
There are multiple ways to integrate CodSpeed with your JS/TS codebase:
vitest (recommended)
The most convenient way to run your Node.js benchmarks
tinybench
A lightweight benchmarking library with a simple API
benchmark.js
The legacy benchmarking library for JavaScript
We recommend using the
vitest
plugin as it is the easiest to use and has the most features.
If you are already using
benchmark.js
or
tinybench
, check out their respective plugins as they require only a small wrapping to work with CodSpeed.
Was this page helpful?
Yes
No
C++
vitest
Assistant
Responses are generated using AI and may contain mistakes.