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/23/2024, 2:28:39 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 57284 100% oha -j --no-tui -z 10s http://localhost:8000
raw_string 50788 89% oha -j --no-tui -z 10s http://localhost:8000
ctx_string 50394 88% oha -j --no-tui -z 10s http://localhost:8000
ctx_json 50357 88% oha -j --no-tui -z 10s http://localhost:8000
group 50301 88% oha -j --no-tui -z 10s http://localhost:8000/api/user
string_response 49468 86% oha -j --no-tui -z 10s http://localhost:8000
raw_json 48687 85% oha -j --no-tui -z 10s http://localhost:8000
params_query 48482 85% oha -j --no-tui -z 10s http://localhost:8000/agus?title=lead
ctx_jsx 46956 82% oha -j --no-tui -z 10s http://localhost:8000
app_middleware 42193 74% oha -j --no-tui -z 10s http://localhost:8000
deno_sqlite 39097 68% oha -j --no-tui -z 10s http://localhost:8000
markdown_middleware 27506 48% oha -j --no-tui -z 10s http://localhost:8000/blog/hello
server_rendering 24979 44% oha -j --no-tui -z 10s http://localhost:8000
deno_kv 19841 35% oha -j --no-tui -z 10s http://localhost:8000/user?name=john
deno_mysql 17987 31% oha -j --no-tui -z 10s http://localhost:8000
oauth 12660 22% oha -j --no-tui -z 10s http://localhost:8000
deno_mongo 12337 22% oha -j --no-tui -z 10s http://localhost:8000
deno_redis 9336 16% oha -j --no-tui -z 10s http://localhost:8000
deno_postgres 7622 13% oha -j --no-tui -z 10s http://localhost:8000
route_middleware 4446 8% oha -j --no-tui -z 10s http://localhost:8000
static_file_string 1762 3% oha -j --no-tui -z 10s http://localhost:8000/static/tailwind.css
static_file_image 1731 3% oha -j --no-tui -z 10s http://localhost:8000/static/favicon.ico