Run details:
Mozilla/5.0 (iPad; CPU OS 9_3_5 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13G36 Safari/601.1
Mobile Safari 9
iOS 9.3.5
Tablet
2 years ago
Test name Executions per second
querySelector 398286.0 Ops/sec
querySelectorAll 186694.1 Ops/sec
getElementsByClassName 545353.9 Ops/sec
querySelector (ID) 359347.5 Ops/sec
getElementsByID 570138.1 Ops/sec
HTML Preparation code:
Tests:
  • querySelector

  • querySelectorAll

  • getElementsByClassName

  • querySelector (ID)

  • getElementsByID


;