Run details:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36
Chrome 94
Windows 7
Desktop
3 years ago
Test name Executions per second
dataset 1224337.8 Ops/sec
getAttribute 1167700.8 Ops/sec
jQuery .data() 35462.8 Ops/sec
jQuery .attr() 34535.7 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()