Run details:
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
Mac OS X 10.11.4
Other
7 years ago
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
HTML Preparation code:
Script Preparation code:
Tests:
  • Normal el.classList.add

  • el.classList.add with RAF

  • New replacement of className with RAF


;