This repository benchmarks different languages and runtimes calculating the sum from 1 to 100,000,000.
- JavaScript (Node.js)
- JavaScript (Bun)
- Go (single-threaded)
- Go (multi-threaded)
- Rust (single-threaded)
- Rust (multi-threaded)
The sum from 1 to 100,000,000 = 5,000,000,050,000,000
# Run individual tests
./scripts/run_benchmarks.sh
# Or run specific language
node src/sum_node.js
bun src/sum_bun.js
go run src/sum_single.go
go run src/sum_multi.go
cd src && cargo run --release --bin sum_single
cd src && cargo run --release --bin sum_multiCheck the Actions tab for automated benchmark results across different environments.