Skip to main content
Module

x/fastro/docs/benchmarks.md

Fast and simple web application framework for deno
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 11/10/2023, 10:42:40 PM. It consists of several simple applications for specific purpose. Each is then accessed by the OHA within 5 seconds. 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
markdown_middleware 77842 100% oha -j --no-tui -z 5s http://localhost:8000/hello
deno 51493 66% oha -j --no-tui -z 5s http://localhost:8000
register 49147 63% oha -j --no-tui -z 5s http://localhost:8000
ctx_string 47308 61% oha -j --no-tui -z 5s http://localhost:8000
string_response 47001 60% oha -j --no-tui -z 5s http://localhost:8000
raw_string 46814 60% oha -j --no-tui -z 5s http://localhost:8000
params_query 45279 58% oha -j --no-tui -z 5s http://localhost:8000/agus?title=lead
raw_json 44802 58% oha -j --no-tui -z 5s http://localhost:8000
record 44576 57% oha -j --no-tui -z 5s http://localhost:8000
ctx_json 44493 57% oha -j --no-tui -z 5s http://localhost:8000
app_middleware 39738 51% oha -j --no-tui -z 5s http://localhost:8000
ssr_with_custom_root 25792 33% oha -j --no-tui -z 5s http://localhost:8000
static_file_string 25632 33% oha -j --no-tui -z 5s http://localhost:8000/static/post.css
ctx_jsx 21082 27% oha -j --no-tui -z 5s http://localhost:8000
raw_jsx 20943 27% oha -j --no-tui -z 5s http://localhost:8000
ssr 17137 22% oha -j --no-tui -z 5s http://localhost:8000
ssr_with_layout 17031 22% oha -j --no-tui -z 5s http://localhost:8000
route_middleware 16428 21% oha -j --no-tui -z 5s http://localhost:8000
ssr_with_error 14117 18% oha -j --no-tui -z 5s http://localhost:8000
deno_kv 13433 17% oha -j --no-tui -z 5s http://localhost:8000/user?name=john
hook 4202 5% oha -j --no-tui -z 5s http://localhost:8000
static_file_image 3351 4% oha -j --no-tui -z 5s http://localhost:8000/static/image.png