Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fastro/docs/benchmarks.md

Full Stack Framework for Deno, TypeScript, Preact JS and Tailwind CSS
Go to Latest
File

title: Benchmarks description: This is the final output of an internal benchmark run in github action image: https://fastro.dev/fastro.png

This is the final output of an internal benchmark run in github action on 9/16/2024, 1:02:28 PM. It consists of several simple applications for specific purpose. Each is then accessed by the OHA within 10s. The results are then sorted by the fastest.

You can find the benchmark script in this code: run.ts

Benchmark results

module rps % oha cmd
deno 57146 100% oha -j --no-tui -z 10s http://localhost:8000
string_response 51194 90% oha -j --no-tui -z 10s http://localhost:8000
raw_string 50906 89% oha -j --no-tui -z 10s http://localhost:8000
group 50751 89% oha -j --no-tui -z 10s http://localhost:8000/api/user
ctx_string 49717 87% oha -j --no-tui -z 10s http://localhost:8000
params_query 47955 84% oha -j --no-tui -z 10s http://localhost:8000/agus?title=lead
raw_json 40327 71% oha -j --no-tui -z 10s http://localhost:8000
ctx_json 40159 70% oha -j --no-tui -z 10s http://localhost:8000
app_middleware 36116 63% oha -j --no-tui -z 10s http://localhost:8000
deno_mongo 35362 62% oha -j --no-tui -z 10s http://localhost:8000
ctx_jsx 35343 62% oha -j --no-tui -z 10s http://localhost:8000
deno_sqlite 34725 61% oha -j --no-tui -z 10s http://localhost:8000
deno_mysql 28081 49% oha -j --no-tui -z 10s http://localhost:8000
deno_kv 22810 40% oha -j --no-tui -z 10s http://localhost:8000/user?name=john
deno_redis 14463 25% oha -j --no-tui -z 10s http://localhost:8000
oauth 10276 18% oha -j --no-tui -z 10s http://localhost:8000
markdown_middleware 10192 18% oha -j --no-tui -z 10s http://localhost:8000/blog/hello
deno_postgres 10082 18% oha -j --no-tui -z 10s http://localhost:8000
server_rendering 10057 18% oha -j --no-tui -z 10s http://localhost:8000
route_middleware 8965 16% oha -j --no-tui -z 10s http://localhost:8000
static_file_image 6247 11% oha -j --no-tui -z 10s http://localhost:8000/static/favicon.ico
static_file_string 6087 11% oha -j --no-tui -z 10s http://localhost:8000/static/tailwind.css