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 7/26/2024, 10:34:10 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 53073 100% oha -j --no-tui -z 10s http://localhost:8000
raw_string 51710 97% oha -j --no-tui -z 10s http://localhost:8000
raw_json 49447 93% oha -j --no-tui -z 10s http://localhost:8000
string_response 49022 92% oha -j --no-tui -z 10s http://localhost:8000
ctx_string 48962 92% oha -j --no-tui -z 10s http://localhost:8000
group 48515 91% oha -j --no-tui -z 10s http://localhost:8000/api/user
ctx_json 48360 91% oha -j --no-tui -z 10s http://localhost:8000
params_query 47815 90% oha -j --no-tui -z 10s http://localhost:8000/agus?title=lead
ctx_jsx 44450 84% oha -j --no-tui -z 10s http://localhost:8000
app_middleware 41703 79% oha -j --no-tui -z 10s http://localhost:8000
deno_sqlite 35655 67% oha -j --no-tui -z 10s http://localhost:8000
server_rendering 23733 45% oha -j --no-tui -z 10s http://localhost:8000
deno_kv 19976 38% oha -j --no-tui -z 10s http://localhost:8000/user?name=john
deno_mysql 18652 35% oha -j --no-tui -z 10s http://localhost:8000
markdown_middleware 17064 32% oha -j --no-tui -z 10s http://localhost:8000/blog/hello
deno_mongo 11559 22% oha -j --no-tui -z 10s http://localhost:8000
oauth 9504 18% oha -j --no-tui -z 10s http://localhost:8000
deno_postgres 8531 16% oha -j --no-tui -z 10s http://localhost:8000
deno_redis 8406 16% oha -j --no-tui -z 10s http://localhost:8000
route_middleware 4381 8% oha -j --no-tui -z 10s http://localhost:8000
static_file_string 1777 3% oha -j --no-tui -z 10s http://localhost:8000/static/tailwind.css
static_file_image 1592 3% oha -j --no-tui -z 10s http://localhost:8000/static/favicon.ico