| 1234567891011121314151617 |
- "use strict";
- /**
- * Reporter module for benchmark.js instances.
- * @private
- */
- module.exports = function reporter(bench){
- var ctx = this;
- return bench
- .on("error", function(){
- if (ctx.file) console.error("ERROR in file: " + ctx.file);
- throw bench.error;
- })
- .on("complete", function() {
- console.log(String(this));
- });
- };
|