HTML Preparation code:
Tests:

Historical Performance Data aggregated from 50 community runs

Desktop Results:
Chrome 39 runs
class name
1.7M/s
data attribute
1.4M/s
class name with data attribute
758K/s

Fastest: class name (2.2x faster)

View exact numbers
  • class name: 1,701,990 ops/sec
  • data attribute: 1,388,590 ops/sec
  • class name with data attribute: 757,907 ops/sec
Firefox 11 runs
class name
973K/s
data attribute
646K/s
class name with data attribute
511K/s

Fastest: class name (1.9x faster)

View exact numbers
  • class name: 972,639 ops/sec
  • data attribute: 645,948 ops/sec
  • class name with data attribute: 511,254 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
    data attribute
    class name
    class name with data attribute

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 YaBrowser/25.8.0.0 Safari/537.36
Yandex Browser 25 on Windows
View result in a separate tab
class name
2.5M/s
data attribute
1.9M/s
class name with data attribute
925K/s
View exact numbers
Test name Executions per second
class name 2,480,232 Ops/sec
data attribute 1,904,489 Ops/sec
class name with data attribute 925,340 Ops/sec