Dev Tools · 1h ago
Vercel Founder Warns: console.log Can Slash Server Throughput by 34%
Vercel's Guillermo Rauch highlighted that using console.log in production can reduce server throughput by up to 34% due to timestamp generation and unbuffered writes. A new logger from the srvx project caches timestamps and batches writes, cutting logging overhead by 60-85%. However, buffered writes risk losing logs during a crash, creating a trade-off between performance and reliability.
Meridian48 take
The performance cost of console.log is well-known, but the 34% hit is a stark reminder that even 'harmless' debugging tools can cripple production systems—though the buffering fix introduces its own risks.
Read the full reporting
Don’t Use console.log for Logging: What Vercel’s Founder Warned About →
DEV Community
loggingjavascript-performance