pinojs / pino

šŸŒ² super fast, all natural json logger
http://getpino.io
MIT License
14.3k stars 878 forks source link

Docs on speed difference of sync and async logging #1862

Open bfelbo opened 11 months ago

bfelbo commented 11 months ago

We're facing some pino logging issues and considering enabling sync: true to fix those. However, it's hard to make that tradeoff without understand the performance impact. The docs mention that "asynchronous logging enables the minimum overhead of Pino", but don't explain more than that.

Of course, this is application-specific and we can do a full benchmarking setup. That takes a lot of time though. It'd be very helpful to know for a standard Node.js webserver whether enabling sync: true usually has a 2x speed decrease or a 100x speed decrease. It'd be amazing to add thisĀ info in the docs.

I tried finding a forum/Slack/Discord of Pino users to ask this question, but I couldn't find any so I'm asking it here instead.

kibertoad commented 11 months ago

Hey, Bjarke! Long time no see. I'll try to look it up!

bfelbo commented 11 months ago

Hey Igor, cool to see you here! Thanks for helping šŸ™