TS web framework comparison: any two, head to head
bun is quicker than elysia on 13 of the 14 profiles they both run, and behind on 1. On the HTTP/1.1 composite they score 6065 and 4272.
Pick any two of the 5 TS entries. Requests per second is the best of three runs and the delta is the first column against the second; every row is the same profile at the same connection count, on the same machine. What each profile measures.
| Profile | Conns | bun req/sec | elysia req/sec | Delta | bun p99 | elysia p99 |
|---|---|---|---|---|---|---|
| Baseline | 4,096 | 1,926,386 | 1,446,994 | +33% | 3.84ms | 8.58ms |
| Pipelined | 4,096 | 5,529,928 | 329,229 | +1580% | 15.20ms | 236.30ms |
| Short-lived | 4,096 | 1,672,444 | 1,264,437 | +32% | 8.61ms | 11.90ms |
| Async Delay | 32,000 | 1,949,532 | 1,155,316 | +69% | 22.30ms | 47.40ms |
| Latency-10K | 1,024 | 9,982 | 9,980 | +0% | 125.0us | 660.0us |
| Latency-1M | 1,024 | 997,935 | 997,790 | +0% | 429.0us | 2291.0us |
| Latency-500K/8 | 1,024 | 337,393 | 242,418 | +39% | 7223296.0us | 10792960.0us |
| JSON Comp | 4,096 | 460,716 | 322,182 | +43% | 20.90ms | 29.60ms |
| JSON Comp | 16,384 | 460,816 | 330,432 | +39% | 61.00ms | 81.80ms |
| JSON TLS | 4,096 | 1,081,708 | 925,608 | +17% | 41.48ms | 36.49ms |
| 8Gbit | 512 | 49,237 | 49,362 | -0% | 180.0us | 823.0us |
| Static TLS | 1,024 | 481,407 | 128,254 | +275% | 62.40ms | 66.22ms |
| Async DB | 1,024 | 283,049 | 246,428 | +15% | 15.90ms | 15.30ms |
| Fortunes | 1,024 | 82,408 | 62,089 | +33% | 24.00ms | 30.40ms |
Common comparisons
bun vs elysia · bun vs hono-bun · bun vs hono-node · elysia vs hono-bun · elysia vs hono-node · hono-bun vs hono-node
Questions
Is bun faster than elysia?
bun is quicker than elysia on 13 of the 14 profiles they both run, and behind on 1. On the HTTP/1.1 composite they score 6065 and 4272. Both run on the same machine, in the same round, against the same profiles.
Is bun faster than hono-bun?
bun is quicker than hono-bun on 13 of the 14 profiles they both run. On the HTTP/1.1 composite they score 6065 and 3327. Both run on the same machine, in the same round, against the same profiles.
Is bun faster than hono-node?
bun is quicker than hono-node on 10 of the 11 profiles they both run, and behind on 1. On the HTTP/1.1 composite they score 6065 and 1867. Both run on the same machine, in the same round, against the same profiles.
Is elysia faster than hono-bun?
elysia is quicker than hono-bun on 12 of the 14 profiles they both run, and behind on 2. On the HTTP/1.1 composite they score 4272 and 3327. Both run on the same machine, in the same round, against the same profiles.
Which TS framework is fastest overall?
bun holds the highest HTTP/1.1 composite of the TS entries, at 6065. The composite is throughput over the whole suite; if a service is one shape of workload, compare that profile on its own in the table above, because the order changes.
Every TS entry
Results updated · TS composite ranking · Compare across languages · Other languages · Open the leaderboard