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 10/22/2023, 4:53:03 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 |
---|---|---|---|
register | 63277 | 100% | oha -j --no-tui -z 5s http://localhost:8000 |
string_response | 61881 | 98% | oha -j --no-tui -z 5s http://localhost:8000 |
raw_string | 61610 | 97% | oha -j --no-tui -z 5s http://localhost:8000 |
params_query | 61190 | 97% | oha -j --no-tui -z 5s http://localhost:8000/agus?title=lead |
raw_json | 58799 | 93% | oha -j --no-tui -z 5s http://localhost:8000 |
record | 58772 | 93% | oha -j --no-tui -z 5s http://localhost:8000 |
ctx_json | 57877 | 91% | oha -j --no-tui -z 5s http://localhost:8000 |
deno | 54640 | 86% | oha -j --no-tui -z 5s http://localhost:8000 |
markdown_middleware | 54097 | 85% | oha -j --no-tui -z 5s http://localhost:8000/hello |
raw_jsx | 53937 | 85% | oha -j --no-tui -z 5s http://localhost:8000 |
ctx_jsx | 52642 | 83% | oha -j --no-tui -z 5s http://localhost:8000 |
app_middleware | 50577 | 80% | oha -j --no-tui -z 5s http://localhost:8000 |
ssr | 38257 | 60% | oha -j --no-tui -z 5s http://localhost:8000 |
ctx_string | 35975 | 57% | oha -j --no-tui -z 5s http://localhost:8000 |
static_file_string | 23152 | 37% | oha -j --no-tui -z 5s http://localhost:8000/static/post.css |
deno_kv | 19559 | 31% | oha -j --no-tui -z 5s http://localhost:8000/user?name=john |
route_middleware | 13332 | 21% | oha -j --no-tui -z 5s http://localhost:8000 |
hook | 2468 | 4% | oha -j --no-tui -z 5s http://localhost:8000 |
static_file_image | 2445 | 4% | oha -j --no-tui -z 5s http://localhost:8000/static/image.png |