Skip to content
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

Cache the pid and hostname globally, flatstr before writing #60

Merged
merged 3 commits into from
Jun 20, 2016

Conversation

mcollina
Copy link
Member

@mcollina mcollina commented Jun 19, 2016

This put us on par with bole for basic and object benchmarks.

Inspired by https://github.com/rvagg/bole/blob/f3ba893c7f948f459615007767e2ffee519bc14c/bole.js#L13-L14.

^^ @rvagg good job!

@coveralls
Copy link

coveralls commented Jun 19, 2016

Coverage Status

Coverage remained the same at 92.032% when pulling 0aabe9c on cache-pid-hostname into f3f27ae on master.

@mcollina mcollina changed the title Cache the pid and hostname globally Cache the pid and hostname globally, flatstr before writing Jun 19, 2016
@coveralls
Copy link

coveralls commented Jun 19, 2016

Coverage Status

Coverage remained the same at 92.032% when pulling 02254c7 on cache-pid-hostname into f3f27ae on master.

@davidmarkclements
Copy link
Member

Just need to update readme benchmarks?,

@mcollina
Copy link
Member Author

Yours come out nicer (damn maxbook pro 15'')

@davidmarkclements
Copy link
Member

davidmarkclements commented Jun 19, 2016

added benchmarks, we actually beat bole in every benchmark - but only just in some cases

@coveralls
Copy link

coveralls commented Jun 19, 2016

Coverage Status

Coverage remained the same at 92.032% when pulling 4b0f6b2 on cache-pid-hostname into f3f27ae on master.

@@ -72,52 +72,61 @@ This produces:
<a name="benchmarks"></a>
## Benchmarks

As far as we know, it is one of the fastest loggers in town:
As far as we know Pino is fastest logger in town.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would leave this as before. The difference is so tiny, and the approach between bole and pino is essentially the same now.
20ms over 10000 log lines is hardly perceivable.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough

@mcollina mcollina merged commit fca9edf into master Jun 20, 2016
@mcollina mcollina deleted the cache-pid-hostname branch June 20, 2016 06:11
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants