https://fastro.dev/static/image.png
title: “Benchmarks” description: This is the final output of an internal benchmark run on github action image: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 |
---|---|---|---|
deno | 47580 | 100% | oha -j --no-tui -z 5s http://localhost:8000 |
ctx_string | 36768 | 77% | oha -j --no-tui -z 5s http://localhost:8000 |
string_response | 36444 | 77% | oha -j --no-tui -z 5s http://localhost:8000 |
raw_string | 35740 | 75% | oha -j --no-tui -z 5s http://localhost:8000 |
params_query | 35043 | 74% | oha -j --no-tui -z 5s http://localhost:8000/agus?title=lead |
raw_json | 34981 | 74% | oha -j --no-tui -z 5s http://localhost:8000 |
register | 33315 | 70% | oha -j --no-tui -z 5s http://localhost:8000 |
raw_jsx | 31524 | 66% | oha -j --no-tui -z 5s http://localhost:8000 |
ctx_json | 31366 | 66% | oha -j --no-tui -z 5s http://localhost:8000 |
ctx_jsx | 29239 | 61% | oha -j --no-tui -z 5s http://localhost:8000 |
ssr | 17555 | 37% | oha -j --no-tui -z 5s http://localhost:8000 |
static_file_string | 15227 | 32% | oha -j --no-tui -z 5s http://localhost:8000/static/post.css |
markdown_middleware | 14355 | 30% | oha -j --no-tui -z 5s http://localhost:8000/hello |
deno_kv | 10264 | 22% | oha -j --no-tui -z 5s http://localhost:8000/user?name=john |
markdown_hook | 9217 | 19% | oha -j --no-tui -z 5s http://localhost:8000/hello |
hook | 3509 | 7% | oha -j --no-tui -z 5s http://localhost:8000 |
static_file_image | 2365 | 5% | oha -j --no-tui -z 5s http://localhost:8000/static/image.png |