HTML Preparation code:
Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    classnames
    clsx
    Array based
    String based (return struct)
    String based (if-else struct)
    Entries, filter, map, join

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Chrome 135 on Mac OS X 10.15.7
View result in a separate tab
clsx
28.1M/s
classnames
16.9M/s
Entries, filter, map, join
5.4M/s
Array based
0/s
String based (return struct)
0/s
String based (if-else struct)
0/s
View exact numbers
Test name Executions per second
clsx 28,147,786 Ops/sec
classnames 16,859,734 Ops/sec
Entries, filter, map, join 5,354,788 Ops/sec
Array based 0 Ops/sec
String based (return struct) 0 Ops/sec
String based (if-else struct) 0 Ops/sec