Console.log (v21)

Revision 21 of this benchmark created on


Preparation HTML

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

Test runner

Ready to run.

Testing in
TestOps/sec
No console
$('<li>...</li>').append('ul');
ready
Console
$('<li>...</li>').append('ul');
console.log($('<li>...</li>').append('ul'));
ready
Console as empty object
var console = {};
console.log = function() {};
$('<li>...</li>').append('ul');
if (true == true){
console.log($('<li>...</li>').append('ul'));
}
ready
Console but false
var console = {};
console.log = function() {};
$('<li>...</li>').append('ul');
if (true == false){
console.log($('<li>...</li>').append('ul'));
}
ready

Revisions

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