This is helpful in tracking down bailouts and deopts in Stream classes,
without triggering one from the string write in console.log
var assert = require('assert');
var path = require('path');
+var silent = +process.env.NODE_BENCH_SILENT;
exports.PORT = process.env.PORT || 12346;
Benchmark.prototype.report = function(value) {
var heading = this.getHeading();
- console.log('%s: %s', heading, value.toPrecision(5));
+ if (!silent)
+ console.log('%s: %s', heading, value.toPrecision(5));
process.exit(0);
};