Skip to main content
Module

x/fastro/docs/benchmarks.md

The Web Framework for Full Stack Apps
Go to Latest
File

title: “Benchmarks” description: This is the final output of an internal benchmark run on github action image: https://fastro.dev/static/image.png

This is the final output of an internal benchmark run on github action. 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
register 58972 100% oha -j --no-tui -z 5s http://localhost:8000
raw_string 57848 98% oha -j --no-tui -z 5s http://localhost:8000
string_response 57791 98% oha -j --no-tui -z 5s http://localhost:8000
ctx_string 57699 98% oha -j --no-tui -z 5s http://localhost:8000
params_query 56702 96% oha -j --no-tui -z 5s http://localhost:8000/agus?title=lead
ctx_json 56617 96% oha -j --no-tui -z 5s http://localhost:8000
raw_json 55788 95% oha -j --no-tui -z 5s http://localhost:8000
record 54788 93% oha -j --no-tui -z 5s http://localhost:8000
ctx_jsx 50223 85% oha -j --no-tui -z 5s http://localhost:8000
ssr 47379 80% oha -j --no-tui -z 5s http://localhost:8000
deno 46041 78% oha -j --no-tui -z 5s http://localhost:8000
raw_jsx 45589 77% oha -j --no-tui -z 5s http://localhost:8000
static_file_string 24939 42% oha -j --no-tui -z 5s http://localhost:8000/static/post.css
markdown_middleware 23034 39% oha -j --no-tui -z 5s http://localhost:8000/hello
deno_kv 17933 30% oha -j --no-tui -z 5s http://localhost:8000/user?name=john
markdown_hook 13726 23% oha -j --no-tui -z 5s http://localhost:8000/hello
hook 5099 9% oha -j --no-tui -z 5s http://localhost:8000
static_file_image 3888 7% oha -j --no-tui -z 5s http://localhost:8000/static/image.png