Console.log (v10)

Revision 10 of this benchmark created on


Preparation HTML

<ul>
</ul><script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>

Setup

var newConsole = {
    enabled: true,
  log: function(msg) {
     if (this.enabled) {
  console.log(msg);
  }
  }
  };
  
  console.info = function() {}

Test runner

Ready to run.

Testing in
TestOps/sec
No console
$('<li>...</li>').append('ul');
ready
Console
$('<li>...</li>').append('ul');
console.log("Done");
ready
Console Wrapper enabled
$('<li>...</li>').append('ul');
newConsole.log("Done");
ready
Console Wrapper disabled
$('<li>...</li>').append('ul');
newConsole.enabled = false;
newConsole.log("Done");
ready
Console deactivated
$('<li>...</li>').append('ul');
console.info ("Done");
ready

Revisions

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