Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:147.0) Gecko/20100101 Firefox/147.0
Firefox 147
Windows
Desktop
2 months ago
Test name Executions per second
querySelector w/ string concatenation 1174309.5 Ops/sec
querySelector w/ string 1195754.6 Ops/sec
getElementById 4966780.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelector w/ string concatenation

  • querySelector w/ string

  • getElementById