Home

Awesome

Benchmark

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.

Requirements

All tool required to set up and run the benchmark.

Bun

Bun is required to run Bun frameworks and benchmark scripts. See bun.sh.

Bombardier

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.

Start

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

Configurations

See configuration file and the type declarations.

Results

Chart

Chart

Table

NameAverageText404URL paramsBody validation
Stric 1.045580.0148578.5147699.9347294.4038747.21
Elysia 0.843410.2246948.5946244.1042586.5037861.68
Fastify 4.2520628.6626076.8723738.5223778.438920.81

Frameworks