Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Safari/537.36
Chrome 81
Mac OS X 10.15.4
Desktop
4 years ago
Test name Executions per second
jQuery CSS function 75734.4 Ops/sec
jQuery height function 60255.1 Ops/sec
jquery inline styling 3893868.5 Ops/sec
native inline styling 4605577.0 Ops/sec
Native offsetHeight (IE8+) 594556.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • jQuery CSS function

  • jQuery height function

  • jquery inline styling

  • native inline styling

  • Native offsetHeight (IE8+)


;