test(bench): reach bench servers cross-host + add scale and Bun/Deno servers
CI / build (pull_request) Successful in 59s
CI / build (pull_request) Successful in 59s
Fastify and the Nest adapters bound 127.0.0.1, unreachable from a separate load generator; bind 0.0.0.0 so two-machine benchmarks work.
Adds scale-{green-tea,express} (step-vs-middleware depth sweeps that surfaced the O(n^2)) and green-tea-{bun,deno} (the same app served via serveBun/serveDeno, to benchmark across runtimes).
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
7 files changed
+129
-3
No files matched your search
@@ -12,7 +12,7 @@ app.post('/validate', {
|
||||
if (!b.email.includes('@')) { reply.code(422); return { error: 'invalid' }; }
|
||||
return { email: b.email };
|
||||
});
|
||||
app.listen({ port: 0 }, (err, addr) => {
|
||||
app.listen({ port: 0, host: '0.0.0.0' }, (err, addr) => {
|
||||
if (err) { console.error(err); process.exit(1); }
|
||||
console.log(`READY ${Number(new URL(addr).port)}`);
|
||||
});
|
||||
Reference in new issue
Block a user