diff --git a/docs/benchmarks.md b/docs/benchmarks.md index 56126771b..681b5e515 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/31/2023, 12:14:31 AM`. 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/31/2023, 12:28:07 AM`. 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) | 54497 | 100% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [string_response](https://github.com/fastrodev/fastro/blob/main/examples/string_response.ts) | 53776 | 99% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [raw_string](https://github.com/fastrodev/fastro/blob/main/examples/raw_string.ts) | 52502 | 96% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [register](https://github.com/fastrodev/fastro/blob/main/examples/register.ts) | 51131 | 94% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [ctx_json](https://github.com/fastrodev/fastro/blob/main/examples/ctx_json.ts) | 50233 | 92% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [record](https://github.com/fastrodev/fastro/blob/main/examples/record.ts) | 49960 | 92% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [raw_json](https://github.com/fastrodev/fastro/blob/main/examples/raw_json.ts) | 49792 | 91% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [params_query](https://github.com/fastrodev/fastro/blob/main/examples/params_query.ts) | 49142 | 90% | `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) | 45288 | 83% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [app_middleware](https://github.com/fastrodev/fastro/blob/main/examples/app_middleware.ts) | 37784 | 69% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [static_file_string](https://github.com/fastrodev/fastro/blob/main/examples/static_file_string.ts) | 19436 | 36% | `oha -j --no-tui -z 5s http://localhost:8000/static/post.css` | -| [markdown_middleware](https://github.com/fastrodev/fastro/blob/main/examples/markdown_middleware.ts) | 16226 | 30% | `oha -j --no-tui -z 5s http://localhost:8000/hello` | -| [raw_jsx](https://github.com/fastrodev/fastro/blob/main/examples/raw_jsx.tsx) | 15580 | 29% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [ssr](https://github.com/fastrodev/fastro/blob/main/examples/ssr.ts) | 15570 | 29% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [deno_kv](https://github.com/fastrodev/fastro/blob/main/examples/deno_kv.ts) | 15560 | 29% | `oha -j --no-tui -z 5s http://localhost:8000/user?name=john` | -| [ctx_jsx](https://github.com/fastrodev/fastro/blob/main/examples/ctx_jsx.tsx) | 15383 | 28% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [route_middleware](https://github.com/fastrodev/fastro/blob/main/examples/route_middleware.ts) | 12860 | 24% | `oha -j --no-tui -z 5s http://localhost:8000` | -| [hook](https://github.com/fastrodev/fastro/blob/main/examples/hook.ts) | 3294 | 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) | 2214 | 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) | 36258 | 100% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [record](https://github.com/fastrodev/fastro/blob/main/examples/record.ts) | 35516 | 98% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [string_response](https://github.com/fastrodev/fastro/blob/main/examples/string_response.ts) | 34729 | 96% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [raw_string](https://github.com/fastrodev/fastro/blob/main/examples/raw_string.ts) | 34517 | 95% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [ctx_json](https://github.com/fastrodev/fastro/blob/main/examples/ctx_json.ts) | 33982 | 94% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [register](https://github.com/fastrodev/fastro/blob/main/examples/register.ts) | 33464 | 92% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [raw_json](https://github.com/fastrodev/fastro/blob/main/examples/raw_json.ts) | 32963 | 91% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [params_query](https://github.com/fastrodev/fastro/blob/main/examples/params_query.ts) | 32854 | 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) | 27158 | 75% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [app_middleware](https://github.com/fastrodev/fastro/blob/main/examples/app_middleware.ts) | 20652 | 57% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [markdown_middleware](https://github.com/fastrodev/fastro/blob/main/examples/markdown_middleware.ts) | 18077 | 50% | `oha -j --no-tui -z 5s http://localhost:8000/hello` | +| [static_file_string](https://github.com/fastrodev/fastro/blob/main/examples/static_file_string.ts) | 16065 | 44% | `oha -j --no-tui -z 5s http://localhost:8000/static/post.css` | +| [ssr](https://github.com/fastrodev/fastro/blob/main/examples/ssr.ts) | 13469 | 37% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [raw_jsx](https://github.com/fastrodev/fastro/blob/main/examples/raw_jsx.tsx) | 12482 | 34% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [ctx_jsx](https://github.com/fastrodev/fastro/blob/main/examples/ctx_jsx.tsx) | 12184 | 34% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [deno_kv](https://github.com/fastrodev/fastro/blob/main/examples/deno_kv.ts) | 9725 | 27% | `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) | 5303 | 15% | `oha -j --no-tui -z 5s http://localhost:8000` | +| [hook](https://github.com/fastrodev/fastro/blob/main/examples/hook.ts) | 2109 | 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) | 1942 | 5% | `oha -j --no-tui -z 5s http://localhost:8000/static/image.png` | \ No newline at end of file