Run details:
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
Mac OS X 10.12.5
Other
7 years ago
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
HTML Preparation code:
Tests:
  • Dex ::: setAttribute()

  • jQuery ::: set attr()

  • Dex ::: getAttribute()

  • jQuery ::: getAttribute()

  • Dex ::: toggleAttribute()

  • jQuery ::: toggle attr()


;