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 1192535.1 Ops/sec
getAttribute 1217536.6 Ops/sec
jQuery .data() 35318.4 Ops/sec
jQuery .attr() 35739.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()


;