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: 5 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36
Chrome 144 on Mac OS X 10.15.7
View result in a separate tab
clsx
7.8M/s
classnames
6.4M/s
String based (return struct)
6.1M/s
String based (if-else struct)
6.1M/s
Entries, filter, map, join
3.6M/s
Array based
2.7M/s
View exact numbers
Test name Executions per second
clsx 7,798,046 Ops/sec
classnames 6,403,261 Ops/sec
String based (return struct) 6,107,393 Ops/sec
String based (if-else struct) 6,102,012 Ops/sec
Entries, filter, map, join 3,580,696 Ops/sec
Array based 2,717,701 Ops/sec