HTML Preparation code:
Tests:
  • className

  • setAttribute

  • classList

  • dataset

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    className
    setAttribute
    classList
    dataset

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Android 10; Mobile; rv:122.0) Gecko/122.0 Firefox/122.0
Firefox Mobile 122 on Android
View result in a separate tab
Test name Executions per second
className 4512.1 Ops/sec
setAttribute 3009.4 Ops/sec
classList 1250.3 Ops/sec
dataset 1394.2 Ops/sec