Run details:
Mozilla/5.0 (Windows NT 6.3; rv:86.0) Gecko/20100101 Firefox/86.0
Firefox 86
Windows 8.1
Desktop
3 years ago
Test name Executions per second
dataset 204311.4 Ops/sec
getAttribute 206658.2 Ops/sec
jQuery .data() 1866.5 Ops/sec
jQuery .attr() 2135.0 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()