From 858e846b44f5ef2f66e97d02d52aa4d734684654 Mon Sep 17 00:00:00 2001 From: mimiMonads Date: Tue, 29 Aug 2023 12:03:59 +0100 Subject: [PATCH 1/4] update to type "Response" --- frameworks/vixeny-deno/hello_bench.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frameworks/vixeny-deno/hello_bench.ts b/frameworks/vixeny-deno/hello_bench.ts index 335efcdd4c..c8d0b2ddfe 100644 --- a/frameworks/vixeny-deno/hello_bench.ts +++ b/frameworks/vixeny-deno/hello_bench.ts @@ -2,10 +2,11 @@ import vixeny from "https://deno.land/x/endofunctor/fun.ts"; Deno.serve( - vixeny({ hasName: "http://localhost:8000/" })([ + vixeny()([ { path: "/", - f: () => "hello world", + type: "response", + r: () => new Response("hello world") }, ]), ); From d072c5973ffa4089e16bf659cc690a2a2d1caaa9 Mon Sep 17 00:00:00 2001 From: mimiMonads Date: Tue, 30 Jan 2024 20:00:20 +0000 Subject: [PATCH 2/4] Updating vixeny --- frameworks/vixeny-bun/framework.json | 8 +++ frameworks/vixeny-bun/hello_bench.ts | 14 ++++ .../vixeny-bun/results/hello_bench.json | 65 +++++++++++++++++++ frameworks/vixeny-deno/hello_bench.ts | 2 +- 4 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 frameworks/vixeny-bun/framework.json create mode 100644 frameworks/vixeny-bun/hello_bench.ts create mode 100644 frameworks/vixeny-bun/results/hello_bench.json diff --git a/frameworks/vixeny-bun/framework.json b/frameworks/vixeny-bun/framework.json new file mode 100644 index 0000000000..a3202c168d --- /dev/null +++ b/frameworks/vixeny-bun/framework.json @@ -0,0 +1,8 @@ +{ + "name": "Vixeny (Bun)", + "description": "A pure functional web framework", + "website": "https://vixeny.dev/", + "benchmarks": { + "hello_bench": "bun run hello_bench.ts" + } +} diff --git a/frameworks/vixeny-bun/hello_bench.ts b/frameworks/vixeny-bun/hello_bench.ts new file mode 100644 index 0000000000..af7ba46772 --- /dev/null +++ b/frameworks/vixeny-bun/hello_bench.ts @@ -0,0 +1,14 @@ + +import { vixeny } from "vixeny"; + + +export default { + port: 8000, + fetch: vixeny()([ + { + path: "/", + type: "response", + r: () => new Response('Hello, Bench!') + }, + ]) +} \ No newline at end of file diff --git a/frameworks/vixeny-bun/results/hello_bench.json b/frameworks/vixeny-bun/results/hello_bench.json new file mode 100644 index 0000000000..83e20dcd26 --- /dev/null +++ b/frameworks/vixeny-bun/results/hello_bench.json @@ -0,0 +1,65 @@ +{ + "summary": { + "successRate": 1, + "total": 10.000282528, + "slowest": 0.004826863, + "fastest": 0.000184995, + "average": 0.0009211311686509055, + "requestsPerSec": 54184.36913985557, + "totalData": 5960449, + "sizePerRequest": 11, + "sizePerSec": 596028.0605384113 + }, + "responseTimeHistogram": { + "0.000184995": 1, + "0.0006491817999999999": 70174, + "0.0011133686": 431014, + "0.0015775554": 40051, + "0.0020417421999999997": 386, + "0.0025059289999999996": 58, + "0.0029701157999999996": 56, + "0.0034343025999999995": 68, + "0.0038984893999999995": 13, + "0.0043626762": 22, + "0.004826863": 16 + }, + "latencyPercentiles": { + "p10": 0.000621936, + "p25": 0.000840658, + "p50": 0.000961162, + "p75": 0.001045675, + "p90": 0.001098198, + "p95": 0.001136389, + "p99": 0.001247979 + }, + "rps": { + "mean": 54178.49373398133, + "stddev": 7342.677493984275, + "max": 81970.05160610522, + "percentiles": { + "p10": 48563.68389657333, + "p25": 49716.23157780649, + "p50": 51003.26631330465, + "p75": 57827.72839576541, + "p90": 65336.000136078095, + "p95": 69984.82160377948, + "p99": 76082.28059937693 + } + }, + "details": { + "DNSDialup": { + "average": 0.00120467458, + "fastest": 0.000081853, + "slowest": 0.002120262 + }, + "DNSLookup": { + "average": 0.000021619260000000002, + "fastest": 0.000003396, + "slowest": 0.000715991 + } + }, + "statusCodeDistribution": { + "200": 541859 + }, + "errorDistribution": {} +} \ No newline at end of file diff --git a/frameworks/vixeny-deno/hello_bench.ts b/frameworks/vixeny-deno/hello_bench.ts index c8d0b2ddfe..25b9b5568e 100644 --- a/frameworks/vixeny-deno/hello_bench.ts +++ b/frameworks/vixeny-deno/hello_bench.ts @@ -6,7 +6,7 @@ Deno.serve( { path: "/", type: "response", - r: () => new Response("hello world") + r: () => new Response('Hello, Bench!') }, ]), ); From f5392c8db40f4e9d9aaa646d9f972b06b0edbfae Mon Sep 17 00:00:00 2001 From: mimiMonads Date: Tue, 30 Jan 2024 20:01:58 +0000 Subject: [PATCH 3/4] updating website --- frameworks/vixeny-deno/framework.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/vixeny-deno/framework.json b/frameworks/vixeny-deno/framework.json index 705db63f83..4e9c6a5b7c 100644 --- a/frameworks/vixeny-deno/framework.json +++ b/frameworks/vixeny-deno/framework.json @@ -1,7 +1,7 @@ { "name": "Vixeny (Deno)", "description": "A pure functional web framework", - "website": "https://github.com/mimiMonads/functor", + "website": "https://vixeny.dev/", "benchmarks": { "hello_bench": "deno run -A --unstable hello_bench.ts" } From da84577e7d17ba3b9c30ad69d8b33314c0a95419 Mon Sep 17 00:00:00 2001 From: mimiMonads Date: Fri, 31 May 2024 12:00:35 +0100 Subject: [PATCH 4/4] locking version of vixeny before beta --- frameworks/vixeny-bun/hello_bench.ts | 1 + frameworks/vixeny-deno/hello_bench.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/vixeny-bun/hello_bench.ts b/frameworks/vixeny-bun/hello_bench.ts index af7ba46772..c066e4c299 100644 --- a/frameworks/vixeny-bun/hello_bench.ts +++ b/frameworks/vixeny-bun/hello_bench.ts @@ -5,6 +5,7 @@ import { vixeny } from "vixeny"; export default { port: 8000, fetch: vixeny()([ + //@ts-ignore { path: "/", type: "response", diff --git a/frameworks/vixeny-deno/hello_bench.ts b/frameworks/vixeny-deno/hello_bench.ts index 25b9b5568e..d99e2ea1c7 100644 --- a/frameworks/vixeny-deno/hello_bench.ts +++ b/frameworks/vixeny-deno/hello_bench.ts @@ -1,5 +1,5 @@ -import vixeny from "https://deno.land/x/endofunctor/fun.ts"; +import vixeny from "https://deno.land/x/endofunctor@v0.0.950/fun.ts"; Deno.serve( vixeny()([