Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.141 YaBrowser/22.3.3.866 Yowser/2.5 Safari/537.36
Yandex Browser 22
Mac OS X 10.15.6
Desktop
2 years ago
Test name Executions per second
dataset 705005.8 Ops/sec
getAttribute 806420.1 Ops/sec
jQuery .data() 20993.1 Ops/sec
jQuery .attr() 22502.8 Ops/sec
HTML Preparation code:
Tests:
  • dataset

  • getAttribute

  • jQuery .data()

  • jQuery .attr()