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/static/image.png

This is the final output of an internal benchmark run in github action on 2/19/2024, 6:12:33 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 55567 100% oha -j --no-tui -z 10s http://localhost:8000
group 50448 91% oha -j --no-tui -z 10s http://localhost:8000/api/user
string_response 50253 90% oha -j --no-tui -z 10s http://localhost:8000
ctx_string 50006 90% oha -j --no-tui -z 10s http://localhost:8000
raw_string 49879 90% oha -j --no-tui -z 10s http://localhost:8000
ctx_json 49549 89% oha -j --no-tui -z 10s http://localhost:8000
raw_json 49178 89% oha -j --no-tui -z 10s http://localhost:8000
params_query 48908 88% oha -j --no-tui -z 10s http://localhost:8000/agus?title=lead
ctx_jsx 46293 83% oha -j --no-tui -z 10s http://localhost:8000
app_middleware 42612 77% oha -j --no-tui -z 10s http://localhost:8000
server_rendering 37801 68% oha -j --no-tui -z 10s http://localhost:8000
deno_sqlite 36638 66% oha -j --no-tui -z 10s http://localhost:8000
markdown_middleware 25230 45% oha -j --no-tui -z 10s http://localhost:8000/blog/hello
deno_postgres 21525 39% oha -j --no-tui -z 10s http://localhost:8000
deno_kv 19709 35% oha -j --no-tui -z 10s http://localhost:8000/user?name=john
deno_mongo 17286 31% oha -j --no-tui -z 10s http://localhost:8000
oauth 11967 22% oha -j --no-tui -z 10s http://localhost:8000
deno_mysql 11128 20% oha -j --no-tui -z 10s http://localhost:8000
deno_redis 10627 19% oha -j --no-tui -z 10s http://localhost:8000
route_middleware 4995 9% oha -j --no-tui -z 10s http://localhost:8000
static_file_string 2201 4% oha -j --no-tui -z 10s http://localhost:8000/static/tailwind.css
static_file_image 2097 4% oha -j --no-tui -z 10s http://localhost:8000/static/favicon.ico