Run details:
Mozilla/5.0 (Linux; Android 9; SM-J330F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.115 Mobile Safari/537.36
Chrome Mobile 92
Android
Mobile
3 years ago
Test name Executions per second
dataset 95685.0 Ops/sec
getAttribute 103906.8 Ops/sec
jQuery .data() 2436.7 Ops/sec
jQuery .attr() 3536.2 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()