HTML Preparation code:
Tests:

Historical Performance Data aggregated from 6 community runs

Desktop Results:
Chrome 6 runs
getAttribute
3.2M/s
dataset
2.3M/s

Fastest: getAttribute (1.4x faster)

View exact numbers
  • getAttribute: 3,182,337 ops/sec
  • dataset: 2,257,766 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    dataset
    getAttribute

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109 on Windows
View result in a separate tab
getAttribute
3.7M/s
dataset
2.4M/s
View exact numbers
Test name Executions per second
getAttribute 3,669,518 Ops/sec
dataset 2,389,658 Ops/sec