https://fastro.dev/static/image.png
title: “Benchmarks” description: This is the final output of an internal benchmark run in github action image:This is the final output of an internal benchmark run in github action on 8/27/2023, 12:09:54 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 |
---|---|---|---|
deno | 57116 | 100% | oha -j --no-tui -z 5s http://localhost:8000 |
ctx_jsx | 52157 | 91% | oha -j --no-tui -z 5s http://localhost:8000 |
string_response | 51719 | 91% | oha -j --no-tui -z 5s http://localhost:8000 |
ctx_string | 50120 | 88% | oha -j --no-tui -z 5s http://localhost:8000 |
raw_string | 49272 | 86% | oha -j --no-tui -z 5s http://localhost:8000 |
ctx_json | 47747 | 84% | oha -j --no-tui -z 5s http://localhost:8000 |
raw_json | 46477 | 81% | oha -j --no-tui -z 5s http://localhost:8000 |
raw_jsx | 46408 | 81% | oha -j --no-tui -z 5s http://localhost:8000 |
record | 46373 | 81% | oha -j --no-tui -z 5s http://localhost:8000 |
app_middleware | 44942 | 79% | oha -j --no-tui -z 5s http://localhost:8000 |
register | 44831 | 78% | oha -j --no-tui -z 5s http://localhost:8000 |
markdown_middleware | 36327 | 64% | oha -j --no-tui -z 5s http://localhost:8000/hello |
ssr | 31797 | 56% | oha -j --no-tui -z 5s http://localhost:8000 |
params_query | 22489 | 39% | oha -j --no-tui -z 5s http://localhost:8000/agus?title=lead |
static_file_string | 19657 | 34% | oha -j --no-tui -z 5s http://localhost:8000/static/post.css |
deno_kv | 14052 | 25% | oha -j --no-tui -z 5s http://localhost:8000/user?name=john |
route_middleware | 11584 | 20% | oha -j --no-tui -z 5s http://localhost:8000 |
hook | 3920 | 7% | oha -j --no-tui -z 5s http://localhost:8000 |
static_file_image | 2636 | 5% | oha -j --no-tui -z 5s http://localhost:8000/static/image.png |