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 5/1/2024, 2:37:14 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 57054 100% oha -j --no-tui -z 10s http://localhost:8000
group 51372 90% oha -j --no-tui -z 10s http://localhost:8000/api/user
string_response 50347 88% oha -j --no-tui -z 10s http://localhost:8000
raw_string 50092 88% oha -j --no-tui -z 10s http://localhost:8000
ctx_string 49717 87% oha -j --no-tui -z 10s http://localhost:8000
raw_json 49387 87% oha -j --no-tui -z 10s http://localhost:8000
ctx_json 48701 85% oha -j --no-tui -z 10s http://localhost:8000
params_query 48132 84% oha -j --no-tui -z 10s http://localhost:8000/agus?title=lead
ctx_jsx 46228 81% oha -j --no-tui -z 10s http://localhost:8000
app_middleware 42358 74% oha -j --no-tui -z 10s http://localhost:8000
deno_sqlite 35598 62% oha -j --no-tui -z 10s http://localhost:8000
static_file_image 33424 59% oha -j --no-tui -z 10s http://localhost:8000/static/favicon.ico
server_rendering 26343 46% oha -j --no-tui -z 10s http://localhost:8000
deno_kv 20135 35% oha -j --no-tui -z 10s http://localhost:8000/user?name=john
markdown_middleware 18788 33% oha -j --no-tui -z 10s http://localhost:8000/blog/hello
deno_mongo 13182 23% oha -j --no-tui -z 10s http://localhost:8000
deno_mysql 9658 17% oha -j --no-tui -z 10s http://localhost:8000
deno_redis 9274 16% oha -j --no-tui -z 10s http://localhost:8000
deno_postgres 7719 14% oha -j --no-tui -z 10s http://localhost:8000
oauth 5127 9% oha -j --no-tui -z 10s http://localhost:8000
route_middleware 4658 8% oha -j --no-tui -z 10s http://localhost:8000
static_file_string 1666 3% oha -j --no-tui -z 10s http://localhost:8000/static/tailwind.css