Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
console-1928158917583
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Browser:
Firefox 124
Operating system:
Linux
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
action
687700352.0 Ops/sec
actionWithLog
66662.4 Ops/sec
actionWithLogData
58553.5 Ops/sec
Script Preparation code:
let counter = 0; function action() { counter++; } function actionWithLog() { counter++; console.log('ok'); } function actionWithLogData() { counter++; console.log('ok', counter); }
Tests:
action
action();
actionWithLog
actionWithLog();
actionWithLogData
actionWithLogData();