diff --git a/docs/benchmarks.md b/docs/benchmarks.md index 6356f9e5e..bf0e97903 100644 --- a/docs/benchmarks.md +++ b/docs/benchmarks.md @@ -4,7 +4,7 @@ description: This is the final output of an internal benchmark run in github act image: https://fastro.dev/static/image.png --- -This is the final output of an internal benchmark run in [github action](https://github.com/fastrodev/fastro/actions) on `10/29/2023, 6:04:07 PM`. It consists of several simple applications for [specific purpose](https://github.com/fastrodev/fastro/blob/main/deno.json). Each is then accessed by the [OHA](https://github.com/hatoo/oha) within 5 seconds. The results are then sorted by the fastest. +This is the final output of an internal benchmark run in [github action](https://github.com/fastrodev/fastro/actions) on `10/29/2023, 11:07:14 PM`. It consists of several simple applications for [specific purpose](https://github.com/fastrodev/fastro/blob/main/deno.json). Each is then accessed by the [OHA](https://github.com/hatoo/oha) within 5 seconds. The results are then sorted by the fastest. You can find the benchmark script in this code: [run.ts](https://github.com/fastrodev/fastro/blob/main/bench/run.ts) @@ -13,22 +13,22 @@ You can find the benchmark script in this code: [run.ts](https://github.com/fast | module | rps | % | oha cmd | | :--------------------------------------------------------------------------------------------------- | ----: | ---: | :------------------------------------------------------------- | -| [deno](https://github.com/fastrodev/fastro/blob/main/examples/deno.ts) | 37721 | 100% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [app_middleware](https://github.com/fastrodev/fastro/blob/main/examples/app_middleware.ts) | 37706 | 100% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [params_query](https://github.com/fastrodev/fastro/blob/main/examples/params_query.ts) | 34335 | 91% | `oha -j --no-tui -z 5s http://localhost:8000/agus?title=lead` | -| [ctx_string](https://github.com/fastrodev/fastro/blob/main/examples/ctx_string.ts) | 34060 | 90% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [raw_json](https://github.com/fastrodev/fastro/blob/main/examples/raw_json.ts) | 33521 | 89% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [record](https://github.com/fastrodev/fastro/blob/main/examples/record.ts) | 33159 | 88% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [register](https://github.com/fastrodev/fastro/blob/main/examples/register.ts) | 33088 | 88% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [string_response](https://github.com/fastrodev/fastro/blob/main/examples/string_response.ts) | 33079 | 88% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [ctx_json](https://github.com/fastrodev/fastro/blob/main/examples/ctx_json.ts) | 32519 | 86% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [raw_string](https://github.com/fastrodev/fastro/blob/main/examples/raw_string.ts) | 30415 | 81% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [ssr](https://github.com/fastrodev/fastro/blob/main/examples/ssr.ts) | 15453 | 41% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [markdown_middleware](https://github.com/fastrodev/fastro/blob/main/examples/markdown_middleware.ts) | 15227 | 40% | `oha -j --no-tui -z 5s http://localhost:8000/hello` | -| [raw_jsx](https://github.com/fastrodev/fastro/blob/main/examples/raw_jsx.tsx) | 10889 | 29% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [ctx_jsx](https://github.com/fastrodev/fastro/blob/main/examples/ctx_jsx.tsx) | 9991 | 26% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [deno_kv](https://github.com/fastrodev/fastro/blob/main/examples/deno_kv.ts) | 9857 | 26% | `oha -j --no-tui -z 5s http://localhost:8000/user?name=john` | -| [static_file_string](https://github.com/fastrodev/fastro/blob/main/examples/static_file_string.ts) | 9605 | 25% | `oha -j --no-tui -z 5s http://localhost:8000/static/post.css` | -| [route_middleware](https://github.com/fastrodev/fastro/blob/main/examples/route_middleware.ts) | 7452 | 20% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [hook](https://github.com/fastrodev/fastro/blob/main/examples/hook.ts) | 2359 | 6% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [static_file_image](https://github.com/fastrodev/fastro/blob/main/examples/static_file_image.ts) | 1588 | 4% | `oha -j --no-tui -z 5s http://localhost:8000/static/image.png` | \ No newline at end of file +| [deno](https://github.com/fastrodev/fastro/blob/main/examples/deno.ts) | 36679 | 100% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [string_response](https://github.com/fastrodev/fastro/blob/main/examples/string_response.ts) | 36355 | 99% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [raw_string](https://github.com/fastrodev/fastro/blob/main/examples/raw_string.ts) | 36248 | 99% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [register](https://github.com/fastrodev/fastro/blob/main/examples/register.ts) | 35269 | 96% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [params_query](https://github.com/fastrodev/fastro/blob/main/examples/params_query.ts) | 35077 | 96% | `oha -j --no-tui -z 5s http://localhost:8000/agus?title=lead` | +| [raw_json](https://github.com/fastrodev/fastro/blob/main/examples/raw_json.ts) | 33806 | 92% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [record](https://github.com/fastrodev/fastro/blob/main/examples/record.ts) | 33761 | 92% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [ctx_json](https://github.com/fastrodev/fastro/blob/main/examples/ctx_json.ts) | 32620 | 89% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [ctx_string](https://github.com/fastrodev/fastro/blob/main/examples/ctx_string.ts) | 28263 | 77% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [app_middleware](https://github.com/fastrodev/fastro/blob/main/examples/app_middleware.ts) | 26481 | 72% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [static_file_string](https://github.com/fastrodev/fastro/blob/main/examples/static_file_string.ts) | 14838 | 40% | `oha -j --no-tui -z 5s http://localhost:8000/static/post.css` | +| [ssr](https://github.com/fastrodev/fastro/blob/main/examples/ssr.ts) | 14805 | 40% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [markdown_middleware](https://github.com/fastrodev/fastro/blob/main/examples/markdown_middleware.ts) | 12323 | 34% | `oha -j --no-tui -z 5s http://localhost:8000/hello` | +| [raw_jsx](https://github.com/fastrodev/fastro/blob/main/examples/raw_jsx.tsx) | 11628 | 32% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [ctx_jsx](https://github.com/fastrodev/fastro/blob/main/examples/ctx_jsx.tsx) | 10745 | 29% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [deno_kv](https://github.com/fastrodev/fastro/blob/main/examples/deno_kv.ts) | 10443 | 28% | `oha -j --no-tui -z 5s http://localhost:8000/user?name=john` | +| [route_middleware](https://github.com/fastrodev/fastro/blob/main/examples/route_middleware.ts) | 8784 | 24% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [static_file_image](https://github.com/fastrodev/fastro/blob/main/examples/static_file_image.ts) | 2578 | 7% | `oha -j --no-tui -z 5s http://localhost:8000/static/image.png` | +| [hook](https://github.com/fastrodev/fastro/blob/main/examples/hook.ts) | 1785 | 5% | `oha -j --no-tui -z 5s http://localhost:8000` | \ No newline at end of file