Script Preparation code:
AخA
 
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();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    action
    actionWithLog
    actionWithLogData

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 9 months ago)
Mozilla/5.0 (X11; Linux x86_64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124 on Linux
View result in a separate tab
Test name Executions per second
action 687700352.0 Ops/sec
actionWithLog 66662.4 Ops/sec
actionWithLogData 58553.5 Ops/sec