Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12) AppleWebKit/603.1.5 (KHTML, like Gecko) Version/10.0 Safari/602.1.50
Safari 10
Mac OS X 10.12
Other
8 years ago
Test name Executions per second
jQuery 3.1.1 Slim 1572547.0 Ops/sec
Vanilla JS 3733457.0 Ops/sec
HTML Preparation code:
Tests:
  • getElementById

  • getElementsByClassName

  • getElementsByTagName

  • querySelector (#id)

  • querySelector (.id)

  • querySelectorAll (#id)

  • querySelectorAll (.id)

  • Cash (#id)

  • Cash (.id)

  • Cash (tag#id)

  • Cash (tag.id)

  • Cash + getElementById

  • Cash + getElementsByClassName

  • jQuery (#id)

  • jQuery (.id)

  • jQuery (tag#id)

  • jQuery (tag.id)

  • jQuery + getElementById

  • jQuery + getElementsByClassName


;