Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36
Chrome 70
Mac OS X 10.14.0
Desktop
6 years ago
Test name Executions per second
jQuery.css 259217.0 Ops/sec
getComputedStyle() 595347.1 Ops/sec
getStyle() 875186.9 Ops/sec
getStyle2() 654861.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • jQuery.css

  • getComputedStyle()

  • getStyle()

  • getStyle2()