Zero-dependency Node.js CLI tool to benchmark your system's CPU, RAM, Disk I/O, and HTTP server performance.
| Test | Details |
|---|---|
| CPU (Single-Thread) | 50M math operations (sqrt × sin × cos) on one core |
| CPU (Multi-Core) | Same workload distributed across all logical cores using worker threads |
| RAM Allocation | Allocates 512 MB in 64 MB chunks |
| RAM Bandwidth | Copies 128 MB buffer 4 times |
| Disk I/O | Sequential write and read of a 1 GB temp file in 64 MB chunks |
| HTTP Server | Spins up a local HTTP server and hammers it with 50 concurrent connections for 5 seconds |
- Node.js 18+
git clone https://github.com/niteshpawar97/nodejs-system-benchmark.git
cd nodejs-system-benchmark
node benchmark.jsNo npm install needed — zero external dependencies.
████████████████████████████████████████████████████████████
NODE.JS SYSTEM BENCHMARK
████████████████████████████████████████████████████████████
════════════════════════════════════════════════════════════
SYSTEM INFO
════════════════════════════════════════════════════════════
OS Windows 10.0.26100
CPU Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz
Cores (logical) 8
Total RAM 15.91 GB
Node.js v20.19.5
════════════════════════════════════════════════════════════
CPU TEST — Single Thread
════════════════════════════════════════════════════════════
Time 16577.0 ms
Throughput 3016232 ops/s
════════════════════════════════════════════════════════════
CPU TEST — Multi-Core
════════════════════════════════════════════════════════════
Cores used 8
Time 3722.7 ms
Throughput 13430992 ops/s
Speedup vs single 4.45x
════════════════════════════════════════════════════════════
DISK TEST (1 GB file)
════════════════════════════════════════════════════════════
Sequential Write 189.6 MB/s
Sequential Read 3695.8 MB/s
════════════════════════════════════════════════════════════
HTTP SERVER TEST
════════════════════════════════════════════════════════════
Requests/sec 4841 req/s
Avg latency 0.21 ms
ISC