HTML Preparation code:
AخA
 
1
<script src='https://cdnjs.cloudflare.com/ajax/libs/react/16.3.0/cjs/react.production.min.js'></script>
2
<button id="button1" on-click={(e) => console.log(e)}>Test</button>
3
<button id="button2" on-click={logFunction}>Test</button>
Script Preparation code:
 
const logFunction = (e) => console.log(e);
Tests:
  • Inline Anonymous

     
    document.getElementById('button1').click();
  • Named Function

     
    document.getElementById('button2').click();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Inline Anonymous
    Named Function

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36
Chrome 77 on Mac OS X 10.14.6
View result in a separate tab
Test name Executions per second
Inline Anonymous 12992.9 Ops/sec
Named Function 13038.1 Ops/sec