Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:131.0) Gecko/20100101 Firefox/131.0
Firefox 131
Mac OS X 10.15
Desktop
2 months ago
Test name Executions per second
dataset 2257444.5 Ops/sec
getAttribute 2521910.8 Ops/sec
jQuery .data() 15895.0 Ops/sec
jQuery .attr() 18752.2 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()