Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0
Firefox 84
Windows 8.1
Desktop
3 years ago
Test name Executions per second
dataset 412807.0 Ops/sec
getAttribute 477605.4 Ops/sec
jQuery .data() 3608.8 Ops/sec
jQuery .attr() 5646.0 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()