Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
console-19281589175831
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
Test name
Executions per second
action
686780352.0 Ops/sec
actionWithLog
65731.2 Ops/sec
actionWithLogData
56033.8 Ops/sec
actionWithCustomLog
5026856.5 Ops/sec
Script Preparation code:
const counter = { val: 0 }; function action() { counter.val++; } function actionWithLog() { counter.val++; console.log('ok'); } function actionWithLogData() { counter.val++; console.log('ok', counter); } const customLog = []; function actionWithCustomLog() { counter.val++; customLog.push(['ok', {...counter}]); }
Tests:
action
action();
actionWithLog
actionWithLog();
actionWithLogData
actionWithLogData();
actionWithCustomLog
actionWithCustomLog()