diff --git a/README.md b/README.md index 8bbe47f..831a928 100644 --- a/README.md +++ b/README.md @@ -1544,29 +1544,29 @@ If you're using Lambda API and finding it useful, hit me up on [Twitter](https:/ In-process micro-benchmarks of lambda-api against other AWS Lambda web frameworks. The numbers measure **framework overhead only** (event → route → middleware → response, in a single Node VM) — not end-to-end Lambda timings. Absolute values vary by machine, so compare the **relative** ranking rather than the raw ops/sec. See [`benchmarks/`](./benchmarks) for the methodology and how to reproduce. -_Generated 2026-08-08 17:06:04 UTC · lambda-api v1.5.0 · Node 20.20.2 · AMD EPYC 7763 64-Core Processor (4 cores) · linux/x64_ +_Generated 2026-08-22 16:38:20 UTC · lambda-api v1.5.1 · Node 20.20.2 · AMD EPYC 7763 64-Core Processor (4 cores) · linux/x64_ #### API Gateway REST (v1) — throughput (ops/sec, higher is better) | Framework | get-json | path-param | post-json | routing-50 | not-found | | --------------------------- | --------- | ---------- | --------- | ---------- | --------- | -| baseline | 2,444,066 | 2,477,678 | 1,302,129 | 1,935,069 | 2,255,100 | -| middy `6.4.5` | 382,851 | 282,355 | 31,111 | 163,187 | 68,913 | -| lambda-api `1.5.0` | 128,426 | 115,517 | 113,134 | 115,238 | 48,521 | -| fastify `5.8.5` | 13,353 | 16,644 | 5,792 | 17,561 | 15,549 | -| hono `4.12.34` | 12,101 | 17,762 | 10,562 | 17,792 | 18,302 | -| serverless-express `4.22.2` | 8,559 | 11,035 | 5,440 | 10,060 | 11,079 | +| baseline | 2,946,788 | 2,283,701 | 1,206,887 | 1,952,970 | 2,268,975 | +| middy `6.4.5` | 364,760 | 267,488 | 30,372 | 158,998 | 66,920 | +| lambda-api `1.5.1` | 126,005 | 113,673 | 113,737 | 114,210 | 49,887 | +| fastify `5.8.5` | 12,672 | 15,589 | 6,778 | 16,691 | 14,714 | +| hono `4.12.34` | 11,437 | 17,141 | 9,847 | 16,968 | 17,686 | +| serverless-express `4.22.2` | 8,274 | 10,642 | 5,215 | 9,714 | 10,810 |
API Gateway REST (v1) — latency (avg / p99, µs, lower is better) | Framework | get-json | path-param | post-json | routing-50 | not-found | | --------------------------- | ----------- | ----------- | ----------- | ----------- | ----------- | -| baseline | 0.41 / 0.66 | 0.40 / 0.78 | 0.77 / 0.83 | 0.52 / 1.04 | 0.44 / 0.50 | -| middy `6.4.5` | 2.61 / 3.53 | 3.54 / 4.81 | 32.1 / 33.5 | 6.13 / 6.42 | 14.5 / 15.3 | -| lambda-api `1.5.0` | 7.79 / 7.87 | 8.66 / 8.77 | 8.84 / 8.93 | 8.68 / 8.76 | 20.6 / 55.8 | -| fastify `5.8.5` | 74.9 / 196 | 60.1 / 110 | 173 / 372 | 56.9 / 96.5 | 64.3 / 115 | -| hono `4.12.34` | 82.6 / 322 | 56.3 / 109 | 94.7 / 193 | 56.2 / 58.6 | 54.6 / 108 | -| serverless-express `4.22.2` | 117 / 260 | 90.6 / 158 | 184 / 386 | 99.4 / 180 | 90.3 / 150 | +| baseline | 0.34 / 0.65 | 0.44 / 0.82 | 0.83 / 1.04 | 0.51 / 0.59 | 0.44 / 0.50 | +| middy `6.4.5` | 2.74 / 3.87 | 3.74 / 4.16 | 32.9 / 35.7 | 6.29 / 6.81 | 14.9 / 15.3 | +| lambda-api `1.5.1` | 7.94 / 7.98 | 8.80 / 8.92 | 8.79 / 8.89 | 8.76 / 8.82 | 20.0 / 19.0 | +| fastify `5.8.5` | 78.9 / 204 | 64.1 / 116 | 148 / 305 | 59.9 / 117 | 68.0 / 125 | +| hono `4.12.34` | 87.4 / 329 | 58.3 / 117 | 102 / 220 | 58.9 / 110 | 56.5 / 109 | +| serverless-express `4.22.2` | 121 / 275 | 94.0 / 171 | 192 / 417 | 103 / 194 | 92.5 / 164 |
@@ -1574,23 +1574,23 @@ _Generated 2026-08-08 17:06:04 UTC · lambda-api v1.5.0 · Node 20.20.2 · AMD E | Framework | get-json | path-param | post-json | routing-50 | not-found | | --------------------------- | --------- | ---------- | --------- | ---------- | --------- | -| baseline | 2,126,449 | 1,789,247 | 1,037,185 | 1,642,674 | 1,806,611 | -| middy `6.4.5` | 372,278 | 278,227 | 31,178 | 161,222 | 67,381 | -| lambda-api `1.5.0` | 116,936 | 106,058 | 105,104 | 106,097 | 48,838 | -| hono `4.12.34` | 20,199 | 18,707 | 11,981 | 18,557 | 19,416 | -| fastify `5.8.5` | 17,361 | 15,423 | 6,162 | 16,474 | 15,968 | -| serverless-express `4.22.2` | 10,909 | 11,229 | 6,739 | 10,472 | 11,515 | +| baseline | 2,059,266 | 1,749,200 | 1,049,495 | 1,560,009 | 1,733,433 | +| middy `6.4.5` | 361,053 | 266,939 | 30,370 | 157,796 | 66,660 | +| lambda-api `1.5.1` | 115,108 | 101,949 | 101,790 | 101,919 | 48,157 | +| hono `4.12.34` | 19,523 | 18,120 | 11,685 | 18,628 | 19,206 | +| fastify `5.8.5` | 16,831 | 13,798 | 7,120 | 15,847 | 15,042 | +| serverless-express `4.22.2` | 10,414 | 10,904 | 6,527 | 9,935 | 10,912 |
API Gateway HTTP (v2) — latency (avg / p99, µs, lower is better) | Framework | get-json | path-param | post-json | routing-50 | not-found | | --------------------------- | ----------- | ----------- | ----------- | ----------- | ----------- | -| baseline | 0.47 / 0.95 | 0.56 / 0.99 | 0.96 / 1.64 | 0.61 / 0.94 | 0.55 / 1.04 | -| middy `6.4.5` | 2.69 / 3.32 | 3.59 / 3.91 | 32.1 / 34.6 | 6.20 / 6.64 | 14.8 / 15.4 | -| lambda-api `1.5.0` | 8.55 / 8.67 | 9.43 / 9.53 | 9.51 / 9.69 | 9.43 / 9.59 | 20.5 / 20.7 | -| hono `4.12.34` | 49.5 / 99.1 | 53.5 / 54.8 | 83.5 / 130 | 53.9 / 56.3 | 51.5 / 52.8 | -| fastify `5.8.5` | 57.6 / 56.0 | 64.8 / 60.5 | 162 / 376 | 60.7 / 66.7 | 62.6 / 59.7 | -| serverless-express `4.22.2` | 91.7 / 193 | 89.1 / 172 | 148 / 262 | 95.5 / 145 | 86.8 / 136 | +| baseline | 0.49 / 1.06 | 0.57 / 1.00 | 0.95 / 1.70 | 0.64 / 1.12 | 0.58 / 1.14 | +| middy `6.4.5` | 2.77 / 3.26 | 3.75 / 4.20 | 32.9 / 35.1 | 6.34 / 6.70 | 15.0 / 15.7 | +| lambda-api `1.5.1` | 8.69 / 8.77 | 9.81 / 9.86 | 9.82 / 9.91 | 9.81 / 9.89 | 20.8 / 22.9 | +| hono `4.12.34` | 51.2 / 101 | 55.2 / 56.6 | 85.6 / 148 | 53.7 / 98.2 | 52.1 / 96.4 | +| fastify `5.8.5` | 59.4 / 58.7 | 72.5 / 62.9 | 140 / 317 | 63.1 / 70.5 | 66.5 / 63.3 | +| serverless-express `4.22.2` | 96.0 / 226 | 91.7 / 169 | 153 / 275 | 101 / 168 | 91.6 / 153 |
@@ -1604,6 +1604,7 @@ Throughput for the `get-json` scenario on V2 events (ops/sec), one row per relea | ----------------- | ---------- | ------- | --------- | ---------- | ------- | ------ | --------- | ------- | | 0.0.0-development | 2026-06-26 | 20.19.5 | 4,830,598 | 201,969 | 45,114 | 70,859 | 1,032,952 | 26,837 | | 1.5.0 | 2026-08-08 | 20.20.2 | 2,126,449 | 116,936 | 17,361 | 20,199 | 372,278 | 10,909 | +| 1.5.1 | 2026-08-22 | 20.20.2 | 2,059,266 | 115,108 | 16,831 | 19,523 | 361,053 | 10,414 |