Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Chrome 71
Mac OS X 10.14.1
Desktop
6 years ago
Test name Executions per second
jQuery.css 297109.2 Ops/sec
getComputedStyle() 667477.2 Ops/sec
getStyle() 872243.8 Ops/sec
getStyle2() 775208.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • jQuery.css

  • getComputedStyle()

  • getStyle()

  • getStyle2()