Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36
Chrome 70
Windows
Desktop
one year ago
Test name Executions per second
dataset 567441.9 Ops/sec
getAttribute 565354.9 Ops/sec
jQuery .data() 28059.6 Ops/sec
jQuery .attr() 27438.1 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()