From 174ad43e01036df6be0b5d8d261e7a96e049a438 Mon Sep 17 00:00:00 2001 From: Kravetsone <57632712+kravetsone@users.noreply.github.com> Date: Tue, 26 Dec 2023 23:01:06 +0300 Subject: [PATCH 1/4] chore(docs): add bun to runtimes in README --- TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TEMPLATE.md b/TEMPLATE.md index 391a2e933a..f3f73928ed 100644 --- a/TEMPLATE.md +++ b/TEMPLATE.md @@ -1,7 +1,7 @@

bench

- 📊 Daily benchmarks of deno & node HTTP frameworks + 📊 Daily benchmarks of deno & node & bun HTTP frameworks


From 933b624d7c6285c1033cf82858912b19be1da940 Mon Sep 17 00:00:00 2001 From: Kravetsone <57632712+kravetsone@users.noreply.github.com> Date: Tue, 26 Dec 2023 23:33:44 +0300 Subject: [PATCH 2/4] feat(frameworks): add elysia --- frameworks/elysia/framework.json | 8 ++++++++ frameworks/elysia/hello_bench.ts | 3 +++ frameworks/elysia/package.json | 1 + 3 files changed, 12 insertions(+) create mode 100644 frameworks/elysia/framework.json create mode 100644 frameworks/elysia/hello_bench.ts create mode 100644 frameworks/elysia/package.json diff --git a/frameworks/elysia/framework.json b/frameworks/elysia/framework.json new file mode 100644 index 0000000000..df892a2484 --- /dev/null +++ b/frameworks/elysia/framework.json @@ -0,0 +1,8 @@ +{ + "name": "Elysia", + "description": "Ergonomic Framework for Humans", + "website": "https://elysiajs.com/", + "benchmarks": { + "hello_bench": "bun run hello_bench.ts" + } +} diff --git a/frameworks/elysia/hello_bench.ts b/frameworks/elysia/hello_bench.ts new file mode 100644 index 0000000000..c4f35f9232 --- /dev/null +++ b/frameworks/elysia/hello_bench.ts @@ -0,0 +1,3 @@ +import Elysia from "elysia"; + +new Elysia().get("/", "Hello, Bench!").listen(8000); \ No newline at end of file diff --git a/frameworks/elysia/package.json b/frameworks/elysia/package.json new file mode 100644 index 0000000000..a5df7d9c26 --- /dev/null +++ b/frameworks/elysia/package.json @@ -0,0 +1 @@ +{ "dependencies": { "elysia": "^0.8.3" } } \ No newline at end of file From 25bc9b31175a2d6ac2640ca88fbbaaf82b2bc8c0 Mon Sep 17 00:00:00 2001 From: Kravetsone <57632712+kravetsone@users.noreply.github.com> Date: Tue, 26 Dec 2023 23:34:12 +0300 Subject: [PATCH 3/4] feat(.gitignore): add bun.lockb file to ignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 7c3d862364..2630209f54 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,6 @@ package-lock.json # Deno deno.lock + +# Bun +bun.lockb \ No newline at end of file From fab59adf3a5d96adbe388146e4999d0b051b6c35 Mon Sep 17 00:00:00 2001 From: Kravetsone <57632712+kravetsone@users.noreply.github.com> Date: Wed, 27 Dec 2023 00:58:25 +0300 Subject: [PATCH 4/4] fix: add bun install in benchmark --- frameworks/elysia/framework.json | 2 +- frameworks/elysia/package.json | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/frameworks/elysia/framework.json b/frameworks/elysia/framework.json index df892a2484..d9c59bf300 100644 --- a/frameworks/elysia/framework.json +++ b/frameworks/elysia/framework.json @@ -3,6 +3,6 @@ "description": "Ergonomic Framework for Humans", "website": "https://elysiajs.com/", "benchmarks": { - "hello_bench": "bun run hello_bench.ts" + "hello_bench": ["bun install", "bun run hello_bench.ts"] } } diff --git a/frameworks/elysia/package.json b/frameworks/elysia/package.json index a5df7d9c26..36c96add44 100644 --- a/frameworks/elysia/package.json +++ b/frameworks/elysia/package.json @@ -1 +1,5 @@ -{ "dependencies": { "elysia": "^0.8.3" } } \ No newline at end of file +{ + "dependencies": { + "elysia": "^0.8.3" + } +}