Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36
Chrome 86
Mac OS X 10.15.7
Desktop
4 years ago
Test name Executions per second
jQuery CSS function 103717.9 Ops/sec
jQuery height function 87136.0 Ops/sec
jquery inline styling 5304897.5 Ops/sec
native inline styling 5440850.5 Ops/sec
Native offsetHeight (IE8+) 643379.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • jQuery CSS function

  • jQuery height function

  • jquery inline styling

  • native inline styling

  • Native offsetHeight (IE8+)


;