Skip to content

Commit 234afd9

Browse files
committed
docs: add cold start data
Signed-off-by: heitorlessa <lessa@amazon.co.uk>
1 parent d2148f2 commit 234afd9

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

docs/content/utilities/parser.mdx

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,3 +456,53 @@ If what's your trying to use isn't available as part of the high level import sy
456456
```python:title=escape_hatch.py
457457
from aws_lambda_powertools.utilities.parser.pydantic import <what you'd like to import'>
458458
```
459+
460+
**What is the cold start impact in bringing this additional dependency?**
461+
462+
No significant cold start impact. It does increase the final uncompressed package by **71M**, when you bring the additional dependency that parser requires.
463+
464+
Artillery load test sample against a [hello world sample](https://github.com/aws-samples/cookiecutter-aws-sam-python) using Tracer, Metrics, and Logger with and without parser.
465+
466+
**No parser**
467+
468+
> **Uncompressed package size**: 55M, **p99**: 180.3ms
469+
470+
```
471+
Summary report @ 14:36:07(+0200) 2020-10-23
472+
Scenarios launched: 10
473+
Scenarios completed: 10
474+
Requests completed: 2000
475+
Mean response/sec: 114.81
476+
Response time (msec):
477+
min: 54.9
478+
max: 1684.9
479+
median: 68
480+
p95: 109.1
481+
p99: 180.3
482+
Scenario counts:
483+
0: 10 (100%)
484+
Codes:
485+
200: 2000
486+
```
487+
488+
**With parser**
489+
490+
> **Uncompressed package size**: 128M, **p99**: 193.1ms
491+
492+
```
493+
Summary report @ 14:29:23(+0200) 2020-10-23
494+
Scenarios launched: 10
495+
Scenarios completed: 10
496+
Requests completed: 2000
497+
Mean response/sec: 111.67
498+
Response time (msec):
499+
min: 54.3
500+
max: 1887.2
501+
median: 66.1
502+
p95: 113.3
503+
p99: 193.1
504+
Scenario counts:
505+
0: 10 (100%)
506+
Codes:
507+
200: 2000
508+
```

0 commit comments

Comments
 (0)