comparison benchmark/bun-http-framework-benchmark/src/bun/nhttp.ts @ 183:a8976a008a9d

[BenchMark] Added bun bench mark to test seoboe vs other popular benchmarks.
author MrJuneJune <me@mrjunejune.com>
date Fri, 23 Jan 2026 21:19:08 -0800
parents
children
comparison
equal deleted inserted replaced
179:8d17f6e6e290 183:a8976a008a9d
1 import { nhttp } from 'nhttp-land'
2
3 const app = nhttp()
4
5 app.get("/", () => "Hi")
6
7 app.post("/json", (rev) => rev.body)
8
9 app.get("/id/:id", (rev) => {
10 rev.response.setHeader("x-powered-by", "benchmark");
11
12 return `${rev.params.id} ${rev.query.name}`
13 })
14
15 app.listen(3000)