Console.log vs empty function

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
console.log
function funcWithLog(arg) {
	console.log(arg);
    return arg;
}
funcWithLog("zsolt")   	
ready
empty function
function funcWithoutLog(arg) {
    return arg;
}
funcWithoutLog("zsolt")   
ready

Revisions

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