Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36
Chrome 122
Linux
Desktop
4 months ago
Test name Executions per second
document.getElementById 6272103.0 Ops/sec
document.querySelector 2674465.8 Ops/sec
element.querySelector 6882864.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • document.getElementById

  • document.querySelector

  • element.querySelector