Toggle navigation
MeasureThat
.net
Create a benchmark
Tools
Feedback
Feature Requests
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:
2 years ago
Benchmark engine:
Benchmark.js
action
672.8M/s
actionWithLog
245K/s
actionWithLogData
242K/s
View exact numbers
Test name
Executions per second
✓
action
672,823,296 Ops/sec
actionWithLog
245,047 Ops/sec
actionWithLogData
241,555 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();