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

This is the final output of an internal benchmark run in github action on 3/2/2024, 11:54:32 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 56755 100% oha -j --no-tui -z 10s http://localhost:8000
string_response 51517 91% oha -j --no-tui -z 10s http://localhost:8000
raw_string 51039 90% oha -j --no-tui -z 10s http://localhost:8000
group 50778 89% oha -j --no-tui -z 10s http://localhost:8000/api/user
raw_json 50348 89% oha -j --no-tui -z 10s http://localhost:8000
ctx_json 50184 88% oha -j --no-tui -z 10s http://localhost:8000
ctx_string 50086 88% oha -j --no-tui -z 10s http://localhost:8000
params_query 48935 86% oha -j --no-tui -z 10s http://localhost:8000/agus?title=lead
ctx_jsx 47168 83% oha -j --no-tui -z 10s http://localhost:8000
deno_sqlite 43739 77% oha -j --no-tui -z 10s http://localhost:8000
app_middleware 43175 76% oha -j --no-tui -z 10s http://localhost:8000
server_rendering 27343 48% oha -j --no-tui -z 10s http://localhost:8000
markdown_middleware 21724 38% oha -j --no-tui -z 10s http://localhost:8000/blog/hello
deno_kv 20649 36% oha -j --no-tui -z 10s http://localhost:8000/user?name=john
deno_postgres 17308 30% oha -j --no-tui -z 10s http://localhost:8000
deno_mongo 13632 24% oha -j --no-tui -z 10s http://localhost:8000
deno_redis 11630 20% oha -j --no-tui -z 10s http://localhost:8000
oauth 8396 15% oha -j --no-tui -z 10s http://localhost:8000
deno_mysql 8002 14% oha -j --no-tui -z 10s http://localhost:8000
route_middleware 4712 8% oha -j --no-tui -z 10s http://localhost:8000
static_file_string 2127 4% oha -j --no-tui -z 10s http://localhost:8000/static/tailwind.css
static_file_image 1858 3% oha -j --no-tui -z 10s http://localhost:8000/static/favicon.ico