Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Windows
Desktop
one year ago
Test name Executions per second
dataset 421902.0 Ops/sec
getAttribute 425212.0 Ops/sec
jQuery .data() 5922.8 Ops/sec
jQuery .attr() 3878.1 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()