Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Mac OS X 10.15.7
Desktop
one year ago
Test name Executions per second
While on class 448505.5 Ops/sec
Closest on class 1710742.8 Ops/sec
Closest on id 1731029.5 Ops/sec
While on reference 4850302.5 Ops/sec
While on id 1344523.2 Ops/sec
Closest separate on id 1278869.5 Ops/sec
Closest separate on class 1267557.6 Ops/sec
HTML Preparation code:
Tests:
  • While on class

  • Closest on class

  • Closest on id

  • While on reference

  • While on id

  • Closest separate on id

  • Closest separate on class

  • While on type

  • Closest separate on type

  • Closest on type