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

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    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

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
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 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
While on class 364967.0 Ops/sec
Closest on class 1388838.2 Ops/sec
Closest on id 1334266.0 Ops/sec
While on reference 4121205.5 Ops/sec
While on id 1099143.4 Ops/sec
Closest separate on id 762035.6 Ops/sec
Closest separate on class 759673.8 Ops/sec
While on type 308824.6 Ops/sec
Closest separate on type 743528.0 Ops/sec
Closest on type 1411130.4 Ops/sec