TS web framework comparison: any two, head to head
bun is ahead of elysia on 14 of the 14 tests they both run. On the HTTP/1.1 composite bun scores 5373 and elysia 3755.
Pick any two of the 7 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. The fixed-rate profiles offer every entry the same request rate, so they are compared on their score out of 100 instead, which is CPU cost and latency at that rate. What each profile measures.
| Profile | Conns | bun | elysia | Delta | bun p99 | elysia p99 |
|---|---|---|---|---|---|---|
| Requests per second | ||||||
| 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 |
| 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 |
| 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 |
| Fixed-rate profiles: score out of 100 | ||||||
| Latency-10K | 1,024 | 62.9 | 34.6 | +82% | 125us | 660us |
| Latency-1M | 1,024 | 61.9 | 42.4 | +46% | 429us | 2.29ms |
| Latency-500K/8 | 1,024 | 22.0 | 11.5 | +91% | 7.22s | 10.79s |
| 8Gbit | 512 | 65.6 | 41.9 | +57% | 180us | 823us |
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 ahead of elysia on 14 of the 14 tests they both run. On the HTTP/1.1 composite bun scores 5373 and elysia 3755. Both run on the same machine, in the same round, against the same profiles.
Is bun faster than hono-bun?
bun is ahead of hono-bun on 14 of the 14 tests they both run. On the HTTP/1.1 composite bun scores 5373 and hono-bun 2976. Both run on the same machine, in the same round, against the same profiles.
Is bun faster than hono-node?
bun is ahead of hono-node on 11 of the 11 tests they both run. On the HTTP/1.1 composite bun scores 5373 and hono-node 1665. Both run on the same machine, in the same round, against the same profiles.
Is elysia faster than hono-bun?
elysia is ahead of hono-bun on 11 of the 14 tests they both run, and behind on 3. On the HTTP/1.1 composite elysia scores 3755 and hono-bun 2976. Both run on the same machine, in the same round, against the same profiles.
Which TS framework is fastest overall?
Among the TS web frameworks, bun holds the highest HTTP/1.1 composite, at 5373; among the TS HTTP engines, deno holds the highest HTTP/1.1 composite, at 1993; among the experimental TS frameworks, swerverts holds the highest HTTP/1.1 composite, at 722. Each league is measured against its own leader, and the leagues do not all count the same profiles, so those numbers are not on one scale and the highest of them is not the fastest entry on the page: to set an entry of one league against an entry of another, pick the two in the table above. 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