Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15
Safari 16
Mac OS X 10.15.7
Desktop
one month ago
Test name Executions per second
Vanilla getById 11209997.0 Ops/sec
Vanilla QuerySelectorAll 2370874.8 Ops/sec
cash ById 3292116.8 Ops/sec
umbrella ById 1604608.9 Ops/sec
jquery ById 5360476.0 Ops/sec
HTML Preparation code:
Tests:
  • Vanilla getById

  • Vanilla QuerySelectorAll

  • cash ById

  • umbrella ById

  • jquery ById