Skip to content

Benchmarks for Encore vs other Node/JS web frameworks

Notifications You must be signed in to change notification settings

encoredev/ts-benchmarks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benchmarks

Methodology

We benchmarked Encore, Bun, Fastify, and Express, both with and without schema validation.

For schema validation we used Zod where possible. In the case of Fastify we used Ajv as the officially supported schema validation library.

For each benchmark we took the best result of five runs. Each run was performed by making as many requests as possible with 150 concurrent workers, over 10s. The load generation was performed with oha, a Rust and Tokio-based HTTP load testing tool.

Load testing

With schema validation:

PORT=3030 oha -c 150 -z 10s -m POST -H 'Content-Type: application/json' -H 'x-foo: test' "http://127.0.0.1:$PORT/schema?name=test&excitement=123" -d '{"someKey": "test", "someOtherKey": 123, "requiredKey": [123, 456, 789], "nullableKey": null, "multipleTypesKey": true, "multipleRestrictedTypesKey": "test", "enumKey": "John"}'

Without schema validation:

PORT=3030 oha -c 150 -z 10s -m GET "http://127.0.0.1:$PORT/hello"

About

Benchmarks for Encore vs other Node/JS web frameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published