Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0
Firefox 88
Fedora
Desktop
3 years ago
Test name Executions per second
dataset 487803.2 Ops/sec
getAttribute 389080.3 Ops/sec
jQuery .data() 4498.9 Ops/sec
jQuery .attr() 5095.1 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()