Run details:
Mozilla/5.0 (Linux; Android 7.0; P9000_MAX) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Mobile Safari/537.36 OPR/64.3.3282.60839
Opera Mobile 64
Android 7.0
Mobile
3 years ago
Test name Executions per second
dataset 101120.3 Ops/sec
getAttribute 103026.1 Ops/sec
jQuery .data() 3224.5 Ops/sec
jQuery .attr() 2990.8 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()