throttled-log

Throttled console.log

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
throttled-log
0.1.110 years ago10 years agoMinified + gzip package size for throttled-log in KB

Readme

throttled-log
Throttled log to STDOUT
If you're writing a lot to STDOUT, throttling writes goes a long way to keeping performance up.

Usage

var log = require("throttled-log")();

// This is much faster
for (var i = 10000 - 1; i >= 0; i--) {
  log("this is a test");
};

// than this
for (var i = 10000 - 1; i >= 0; i--) {
  console.log("this is a test");
};

// unthrottled: 6401 throttled: 268