Skip to content

chore: benchmark the logger #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.

1 participant