Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Chrome 56
Mac OS X 10.10.5
Other
7 years ago
Test name Executions per second
querySelector (id) 1904342.4 Ops/sec
getElementById 2197916.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • querySelector (id)

  • getElementById