Console.log (v24)

Revision 24 of this benchmark created by Richard DIllman on


Setup

var arr = [];
  var customLog = function fn1(arg) {
    arr.push(arg);
    return arg;
  }
  var emptyFunction = function fn2(arg) {
    return arg;
  }

Test runner

Ready to run.

Testing in
TestOps/sec
An empty function
emptyFunction('Logging stuff');
ready
Native Console.log
console.log('Logging stuff');
ready
A custom hidden logger
customLog('Logging stuff');
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.