throttled-log

Throttled console.log

npm install throttled-log
36 downloads in the last day
196 downloads in the last week
1 159 downloads in the last month

throttled-log

Throttled log to STDOUT

If you're writing a lot of data to STDOUT, throttling the output goes a long way to keeping performance up.

Usage

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

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

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

// throttled: 268ms vs unthrottled: 6401ms
npm loves you