diff --git a/docs/benchmarks.md b/docs/benchmarks.md index a5ac68ab4..867ecfd43 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/fastro.png --- -This is the final output of an internal benchmark run in [github action](https://github.com/fastrodev/fastro/actions) on `8/13/2024, 1:20:52 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 10s. 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 `8/14/2024, 1:02:18 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 10s. 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,25 +13,25 @@ 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) | 52985 | 100% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [group](https://github.com/fastrodev/fastro/blob/main/examples/group.ts) | 50478 | 95% | `oha -j --no-tui -z 10s http://localhost:8000/api/user` | -| [raw_string](https://github.com/fastrodev/fastro/blob/main/examples/raw_string.ts) | 50340 | 95% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [string_response](https://github.com/fastrodev/fastro/blob/main/examples/string_response.ts) | 49630 | 94% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [ctx_string](https://github.com/fastrodev/fastro/blob/main/examples/ctx_string.ts) | 48388 | 91% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [ctx_json](https://github.com/fastrodev/fastro/blob/main/examples/ctx_json.ts) | 48173 | 91% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [raw_json](https://github.com/fastrodev/fastro/blob/main/examples/raw_json.ts) | 47695 | 90% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [params_query](https://github.com/fastrodev/fastro/blob/main/examples/params_query.ts) | 47024 | 89% | `oha -j --no-tui -z 10s http://localhost:8000/agus?title=lead` | -| [ctx_jsx](https://github.com/fastrodev/fastro/blob/main/examples/ctx_jsx.tsx) | 45077 | 85% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [app_middleware](https://github.com/fastrodev/fastro/blob/main/examples/app_middleware.ts) | 41582 | 78% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [deno_sqlite](https://github.com/fastrodev/fastro/blob/main/examples/deno_sqlite.ts) | 34779 | 66% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [server_rendering](https://github.com/fastrodev/fastro/blob/main/examples/server_rendering.tsx) | 23184 | 44% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [deno_kv](https://github.com/fastrodev/fastro/blob/main/examples/deno_kv.ts) | 19676 | 37% | `oha -j --no-tui -z 10s http://localhost:8000/user?name=john` | -| [markdown_middleware](https://github.com/fastrodev/fastro/blob/main/examples/markdown_middleware.ts) | 11378 | 21% | `oha -j --no-tui -z 10s http://localhost:8000/blog/hello` | -| [deno_mongo](https://github.com/fastrodev/fastro/blob/main/examples/deno_mongo.ts) | 11272 | 21% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [oauth](https://github.com/fastrodev/fastro/blob/main/examples/oauth.ts) | 9292 | 18% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [deno_redis](https://github.com/fastrodev/fastro/blob/main/examples/deno_redis.ts) | 8697 | 16% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [deno_postgres](https://github.com/fastrodev/fastro/blob/main/examples/deno_postgres.ts) | 7441 | 14% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [deno_mysql](https://github.com/fastrodev/fastro/blob/main/examples/deno_mysql.ts) | 6834 | 13% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [route_middleware](https://github.com/fastrodev/fastro/blob/main/examples/route_middleware.ts) | 4684 | 9% | `oha -j --no-tui -z 10s http://localhost:8000` | -| [static_file_string](https://github.com/fastrodev/fastro/blob/main/examples/static_file_string.ts) | 2400 | 5% | `oha -j --no-tui -z 10s http://localhost:8000/static/tailwind.css` | -| [static_file_image](https://github.com/fastrodev/fastro/blob/main/examples/static_file_image.ts) | 1653 | 3% | `oha -j --no-tui -z 10s http://localhost:8000/static/favicon.ico` | \ No newline at end of file +| [deno](https://github.com/fastrodev/fastro/blob/main/examples/deno.ts) | 53578 | 100% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [group](https://github.com/fastrodev/fastro/blob/main/examples/group.ts) | 51521 | 96% | `oha -j --no-tui -z 10s http://localhost:8000/api/user` | +| [raw_string](https://github.com/fastrodev/fastro/blob/main/examples/raw_string.ts) | 48413 | 90% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [string_response](https://github.com/fastrodev/fastro/blob/main/examples/string_response.ts) | 48369 | 90% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [ctx_string](https://github.com/fastrodev/fastro/blob/main/examples/ctx_string.ts) | 48284 | 90% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [ctx_json](https://github.com/fastrodev/fastro/blob/main/examples/ctx_json.ts) | 47872 | 89% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [raw_json](https://github.com/fastrodev/fastro/blob/main/examples/raw_json.ts) | 46792 | 87% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [params_query](https://github.com/fastrodev/fastro/blob/main/examples/params_query.ts) | 46577 | 87% | `oha -j --no-tui -z 10s http://localhost:8000/agus?title=lead` | +| [ctx_jsx](https://github.com/fastrodev/fastro/blob/main/examples/ctx_jsx.tsx) | 44279 | 83% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [app_middleware](https://github.com/fastrodev/fastro/blob/main/examples/app_middleware.ts) | 40993 | 77% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [deno_sqlite](https://github.com/fastrodev/fastro/blob/main/examples/deno_sqlite.ts) | 36672 | 68% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [deno_redis](https://github.com/fastrodev/fastro/blob/main/examples/deno_redis.ts) | 34783 | 65% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [server_rendering](https://github.com/fastrodev/fastro/blob/main/examples/server_rendering.tsx) | 24947 | 47% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [deno_kv](https://github.com/fastrodev/fastro/blob/main/examples/deno_kv.ts) | 19798 | 37% | `oha -j --no-tui -z 10s http://localhost:8000/user?name=john` | +| [deno_mysql](https://github.com/fastrodev/fastro/blob/main/examples/deno_mysql.ts) | 19557 | 37% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [markdown_middleware](https://github.com/fastrodev/fastro/blob/main/examples/markdown_middleware.ts) | 13682 | 26% | `oha -j --no-tui -z 10s http://localhost:8000/blog/hello` | +| [deno_mongo](https://github.com/fastrodev/fastro/blob/main/examples/deno_mongo.ts) | 12080 | 23% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [deno_postgres](https://github.com/fastrodev/fastro/blob/main/examples/deno_postgres.ts) | 7990 | 15% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [oauth](https://github.com/fastrodev/fastro/blob/main/examples/oauth.ts) | 7787 | 15% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [route_middleware](https://github.com/fastrodev/fastro/blob/main/examples/route_middleware.ts) | 4543 | 8% | `oha -j --no-tui -z 10s http://localhost:8000` | +| [static_file_string](https://github.com/fastrodev/fastro/blob/main/examples/static_file_string.ts) | 2085 | 4% | `oha -j --no-tui -z 10s http://localhost:8000/static/tailwind.css` | +| [static_file_image](https://github.com/fastrodev/fastro/blob/main/examples/static_file_image.ts) | 1641 | 3% | `oha -j --no-tui -z 10s http://localhost:8000/static/favicon.ico` | \ No newline at end of file