Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
Chrome 49
Mac OS X 10.8.5
Desktop
2 years ago
Test name Executions per second
querySelector 826513.8 Ops/sec
querySelectorAll 225484.2 Ops/sec
getElementsByClassName 1484845.6 Ops/sec
querySelector (ID) 817425.6 Ops/sec
getElementsByID 1522254.8 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;