Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36
Chrome 81
Mac OS X 10.14.6
Desktop
4 years ago
Test name Executions per second
jQuery CSS function 100432.5 Ops/sec
jQuery height function 84971.5 Ops/sec
jquery inline styling 5279183.5 Ops/sec
native inline styling 5385710.0 Ops/sec
Native offsetHeight (IE8+) 1086492.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • jQuery CSS function

  • jQuery height function

  • jquery inline styling

  • native inline styling

  • Native offsetHeight (IE8+)


;