Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Chrome 78
Linux
Desktop
5 years ago
Test name Executions per second
addEventListener 95.0 Ops/sec
addEventListener anon 42.7 Ops/sec
$().click 762.4 Ops/sec
$().click anon 674.6 Ops/sec
onclick 190.7 Ops/sec
onclick anon 188.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • addEventListener

  • addEventListener anon

  • $().click

  • $().click anon

  • onclick

  • onclick anon