Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Windows
Desktop
2 years ago
Test name Executions per second
dataset 651745.5 Ops/sec
getAttribute 713634.4 Ops/sec
jQuery .data() 9050.1 Ops/sec
jQuery .attr() 2869.1 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()