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

  • getAttribute

  • jQuery .data()

  • jQuery .attr()