HTML Preparation code:
Tests:
  • Dex ::: setAttribute()

  • jQuery ::: set attr()

  • Dex ::: getAttribute()

  • jQuery ::: getAttribute()

  • Dex ::: toggleAttribute()

  • jQuery ::: toggle attr()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Dex ::: setAttribute()
    jQuery ::: set attr()
    Dex ::: getAttribute()
    jQuery ::: getAttribute()
    Dex ::: toggleAttribute()
    jQuery ::: toggle attr()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Chrome 61 on Mac OS X 10.12.5
View result in a separate tab
Test name Executions per second
Dex ::: setAttribute() 563266.5 Ops/sec
jQuery ::: set attr() 247748.3 Ops/sec
Dex ::: getAttribute() 2733019.0 Ops/sec
jQuery ::: getAttribute() 436076.9 Ops/sec
Dex ::: toggleAttribute() 342433.3 Ops/sec
jQuery ::: toggle attr() 124457.4 Ops/sec


;