Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:88.0) Gecko/20100101 Firefox/88.0
Firefox 88
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
dataset 822970.0 Ops/sec
getAttribute 833885.6 Ops/sec
jQuery .data() 7463.2 Ops/sec
jQuery .attr() 9732.2 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()