Skip to content

Conversation

@simonireilly
Copy link
Owner

@simonireilly simonireilly commented Jan 8, 2022

Relates to aws-powertools#315

Loggers should be performant, baseline benchmarks should prevent performance regressions.

Description of your changes

This change adds benchmarked comparisons of the logger utility to existing eco-system loggers.

How to verify this change

npm i
npm run bench:deep --prefix packages/logger

Results:

benchLogger*10000: 12588ms
benchConsole*10000: 7.372s
benchPino*10000: 497.632ms

Simplified analysis, 12588 / 497 = 25; therefore to use this logger it would cost 25 times more on a lambda bill for the equivalent number of lines of logs.

@simonireilly simonireilly changed the title Install neccessary depedencies, and create a basic and comparitive benchmark for logging tools chore: benchmark the logger Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants