Documentation
Performance

Performance benchmark

We create 2,000 APIs,benchmark these framework: express,hono,tsdk-express-adapter,tsdk-hono-adapter and trpc's express adapter.

Environments

Single core result

RPS = Requests Per Second, Higer better

ServiceRPSElapsedCount2xxReadsWrites
Hono2440.63730s73228732280.508MB/s0.186MB/s
Trpc Express Adapter2360.50230s70817708170.554MB/s0.180MB/s
tsdk Express Adapter2207.84430s66240662400.596MB/s0.169MB/s
tsdk Hono Adapter2106.08830s63188631880.438MB/s0.161MB/s
Express584.82830s17547175470.158MB/s0.045MB/s

tsdk-bench-result

Multiple cores result (8 cores)

Run with command pm2 start app.js -i max

ServiceRPSElapsedCount2xxReadsWrites
tsdk Hono2420.15230s72609726090.504MB/s0.185MB/s
tsdk Express2413.33430s72403724030.652MB/s0.184MB/s
Trpc Express2233.69730s67011670110.525MB/s0.171MB/s
Hono2077.16230s62317623170.432MB/s0.159MB/s
Express1901.31230s57049570490.514MB/s0.145MB/s

tsdk-bench-result-cluster

Benchmark code

https://github.com/tsdk-monorepo/tsdk/tree/main/packages/bench (opens in a new tab)