Run details:
Mozilla/5.0 (Linux; Android 11; M2002J9G) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.88 Mobile Safari/537.36
Chrome Mobile 91
Android
Mobile
3 years ago
Test name Executions per second
dataset 471103.4 Ops/sec
getAttribute 492832.7 Ops/sec
jQuery .data() 11433.8 Ops/sec
jQuery .attr() 12210.5 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()