Benchmarking Bun, Node and Deno frameworks performance, in requests per second.
You can see the details results here.
I recommend testing this by yourself as performance may varies on different machine.
All tool required to set up and run the benchmark.
Bun is required to run Bun frameworks and benchmark scripts. See bun.sh.
Go is required to install the bombardier
CLI. See go.dev.
Install bombardier
using:
# Install the CLI without a `go.mod` file
go install -mod=mod github.com/codesenberg/bombardier
# Check after install
bombardier --version
You need to manually set GO_PATH
to your extracted go
directory, GO_BIN
to $GO_PATH/bin
and add GO_BIN
to PATH
if bombardier --version
fails.
Clone this reposity. Go to the root directory and run:
# Install required dependencies
bun ins
# Run the benchmark
bun bench
# Or do both
bun start
See configuration file and the type declarations.