Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:82.0) Gecko/20100101 Firefox/82.0
Firefox 82
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
dataset 551408.2 Ops/sec
getAttribute 659224.4 Ops/sec
jQuery .data() 10207.7 Ops/sec
jQuery .attr() 7027.8 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()