HTML Preparation code:
Script Preparation code:
Tests:
  • Normal el.classList.add

  • el.classList.add with RAF

  • New replacement of className with RAF

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Normal el.classList.add
    el.classList.add with RAF
    New replacement of className with RAF

    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_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36
Chrome 54 on Mac OS X 10.11.4
View result in a separate tab
Test name Executions per second
Normal el.classList.add 2765344.5 Ops/sec
el.classList.add with RAF 32366.5 Ops/sec
New replacement of className with RAF 32697.5 Ops/sec


;