Run details:
Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.7113.93 Safari/537.36
Chrome 99
Windows
Desktop
3 years ago
Test name Executions per second
dataset 369412.2 Ops/sec
getAttribute 375378.0 Ops/sec
jQuery .data() 3373.6 Ops/sec
jQuery .attr() 5772.0 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()