Merge pull request #1244 from canassa/fix-handler-return-type #72
Annotations
1 error and 2 warnings
benchmarks (18.x)
No benchmark result was found in /home/runner/work/middy/middy/benchmarks-18.x.txt. Benchmark output was '
> @middy/[email protected] test:packages:benchmark
> npm run test:benchmark --workspaces
> @middy/[email protected] test:benchmark
> node __benchmarks__/index.js
┌─────────┬─────────────────┬───────────┬───────────────────┬──────────┬─────────┐
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │
├─────────┼─────────────────┼───────────┼───────────────────┼──────────┼─────────┤
│ 0 │ 'without cache' │ '539,658' │ 1853.024031839728 │ '±0.74%' │ 539659 │
│ 1 │ 'with cache' │ '320,711' │ 3118.063468159034 │ '±1.61%' │ 320712 │
└─────────┴─────────────────┴───────────┴───────────────────┴──────────┴─────────┘
> @middy/[email protected] test:benchmark
> node __benchmarks__/index.js
┌─────────┬─────────────────┬─────────┬────────────────────┬──────────┬─────────┐
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │
├─────────┼─────────────────┼─────────┼────────────────────┼──────────┼─────────┤
│ 0 │ 'without cache' │ '2,314' │ 431966.75507545366 │ '±2.86%' │ 2315 │
│ 1 │ 'with cache' │ '2,758' │ 362545.4320407177 │ '±0.98%' │ 2759 │
└─────────┴─────────────────┴─────────┴────────────────────┴──────────┴─────────┘
> @middy/[email protected] test:benchmark
> node __benchmarks__/index.js
┌─────────┬─────────────────────────────────────────┬─────────────┬────────────────────┬──────────┬─────────┐
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │
├─────────┼─────────────────────────────────────────┼─────────────┼────────────────────┼──────────┼─────────┤
│ 0 │ 'Cold Invocation' │ '210,349' │ 4753.982161099023 │ '±1.69%' │ 210383 │
│ 1 │ 'Cold Invocation with middleware' │ '74,154' │ 13485.357521430049 │ '±2.41%' │ 74155 │
│ 2 │ 'Warm Invocation' │ '605,456' │ 1651.647418384892 │ '±0.58%' │ 605457 │
│ 3 │ 'Warm Async Invocation' │ '620,700' │ 1611.0832123503885 │ '±0.40%' │ 620701 │
│ 4 │ 'Warm Invocation with disabled Timeout' │ '1,150,347' │ 869.3028248745024 │ '±0.44%' │ 1150348 │
│ 5 │ 'Warm Invocation with middleware' │ '165,441' │ 6044.436561221494 │ '±0.41%' │ 165443 │
│ 6 │ 'Warm Invocation with async middleware' │ '168,531' │ 5933.59159090968 │ '±0.41%' │ 168532 │
└─────────┴─────────────────────────────────────────┴─────────────┴────────────────────┴──────────┴─────────┘
> @middy/[email protected] test:benchmark
> node __benchmarks__/index.js
┌─────────┬──────────────────┬───────────┬────────────────────┬──────────┬─────────┐
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │
├─────────┼──────────────────┼───────────┼────────────────────┼──────────┼─────────┤
│ 0 │ 'Change Context' │ '593,179' │ 1685.8311069153965 │ '±0.65%' │ 593180 │
└─────────┴──────────────────┴───────────┴────────────────────┴──────────┴─────────┘
> @middy/[email protected] test:benchmark
> node __benchmarks__/index.js
┌─────────┬─────────────────┬───────────┬────────────────────┬──────────┬─────────┐
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │
├─────────┼─────────────────┼───────────┼────────────────────┼──────────┼─────────┤
│ 0 │ 'without cache' │ '543,497' │ 1839.9336704121506 │ '±0.73%' │ 543498 │
│ 1 │ 'with cache' │ '322,823' │ 3097.667221145583 │ '±1.59%' │ 322824 │
└─────────┴─────────────────┴───────────┴────────────────────┴──────────┴─────────┘
> @middy/[email protected] test:benchmark
> node __benchmarks__/index.js
┌─────────┬───────────────┬───────────┬───────────────────┬──────────┬─────────┐
│ (index) │ Task Name │ ops/sec │ Average Time (ns) │ Margin │ Samples │
├─────────┼───────────────┼───────────┼───────────────────┼──────────┼─────────┤
│ 0 │ 'Catch Error' │ '209,276' │ 4778.35639844664 │ '±0
|
benchmarks (18.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2, actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
benchmarks (18.x)
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2, actions/cache@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|