Skip to main content
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 3/28/2024, 6:38:31 AM. 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 58913 100% oha -j --no-tui -z 10s http://localhost:8000
raw_string 51966 88% oha -j --no-tui -z 10s http://localhost:8000
group 51921 88% oha -j --no-tui -z 10s http://localhost:8000/api/user
ctx_string 50691 86% oha -j --no-tui -z 10s http://localhost:8000
string_response 50489 86% oha -j --no-tui -z 10s http://localhost:8000
raw_json 49681 84% oha -j --no-tui -z 10s http://localhost:8000
ctx_json 49232 84% oha -j --no-tui -z 10s http://localhost:8000
params_query 48734 83% oha -j --no-tui -z 10s http://localhost:8000/agus?title=lead
ctx_jsx 47316 80% oha -j --no-tui -z 10s http://localhost:8000
app_middleware 43418 74% oha -j --no-tui -z 10s http://localhost:8000
deno_sqlite 35713 61% oha -j --no-tui -z 10s http://localhost:8000
markdown_middleware 28284 48% oha -j --no-tui -z 10s http://localhost:8000/blog/hello
server_rendering 26716 45% oha -j --no-tui -z 10s http://localhost:8000
deno_redis 21123 36% oha -j --no-tui -z 10s http://localhost:8000
deno_kv 20903 35% oha -j --no-tui -z 10s http://localhost:8000/user?name=john
deno_postgres 18106 31% oha -j --no-tui -z 10s http://localhost:8000
deno_mongo 15915 27% oha -j --no-tui -z 10s http://localhost:8000
deno_mysql 10130 17% oha -j --no-tui -z 10s http://localhost:8000
oauth 7770 13% oha -j --no-tui -z 10s http://localhost:8000
route_middleware 4836 8% oha -j --no-tui -z 10s http://localhost:8000
static_file_string 2022 3% oha -j --no-tui -z 10s http://localhost:8000/static/tailwind.css
static_file_image 1998 3% oha -j --no-tui -z 10s http://localhost:8000/static/favicon.ico