Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4437.0 Safari/537.36 Edg/91.0.831.1
Chrome 91
Windows
Desktop
3 years ago
Test name Executions per second
dataset 954831.2 Ops/sec
getAttribute 860605.0 Ops/sec
jQuery .data() 26375.1 Ops/sec
jQuery .attr() 24514.1 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()