Tests:
-
dataset
-
getAttribute
-
jQuery .data()
-
jQuery .attr()
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 OPR/109.0.0.0
Opera 109 on Windows
View result in a separate tab
View exact numbers
| Test name |
Executions per second |
|
✓
getAttribute
|
1,373,780 Ops/sec |
|
dataset
|
1,287,639 Ops/sec |
|
jQuery .data()
|
42,600 Ops/sec |
|
jQuery .attr()
|
34,148 Ops/sec |
Do you really want to delete benchmark?