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 9/6/2024, 12:45:24 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 59416 100% oha -j --no-tui -z 10s http://localhost:8000
string_response 51194 86% oha -j --no-tui -z 10s http://localhost:8000
ctx_string 50243 85% oha -j --no-tui -z 10s http://localhost:8000
group 50069 84% oha -j --no-tui -z 10s http://localhost:8000/api/user
raw_string 49660 84% oha -j --no-tui -z 10s http://localhost:8000
params_query 49231 83% oha -j --no-tui -z 10s http://localhost:8000/agus?title=lead
deno_mongo 42425 71% oha -j --no-tui -z 10s http://localhost:8000
ctx_json 40614 68% oha -j --no-tui -z 10s http://localhost:8000
raw_json 40493 68% oha -j --no-tui -z 10s http://localhost:8000
deno_sqlite 37173 63% oha -j --no-tui -z 10s http://localhost:8000
app_middleware 36434 61% oha -j --no-tui -z 10s http://localhost:8000
ctx_jsx 35215 59% oha -j --no-tui -z 10s http://localhost:8000
deno_kv 23275 39% oha -j --no-tui -z 10s http://localhost:8000/user?name=john
server_rendering 22001 37% oha -j --no-tui -z 10s http://localhost:8000
oauth 14511 24% oha -j --no-tui -z 10s http://localhost:8000
deno_redis 12230 21% oha -j --no-tui -z 10s http://localhost:8000
deno_mysql 11179 19% oha -j --no-tui -z 10s http://localhost:8000
deno_postgres 10730 18% oha -j --no-tui -z 10s http://localhost:8000
markdown_middleware 9262 16% oha -j --no-tui -z 10s http://localhost:8000/blog/hello
route_middleware 8578 14% oha -j --no-tui -z 10s http://localhost:8000
static_file_string 6272 11% oha -j --no-tui -z 10s http://localhost:8000/static/tailwind.css
static_file_image 6001 10% oha -j --no-tui -z 10s http://localhost:8000/static/favicon.ico