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

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    clsx str + obj
    clsx str + cond
    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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134 on Linux
View result in a separate tab
clsx str + cond
47.9M/s
clsx str + obj
28.8M/s
String based (return struct)
16.0M/s
String based (if-else struct)
13.2M/s
Entries, filter, map, join
9.2M/s
Array based
8.4M/s
View exact numbers
Test name Executions per second
clsx str + cond 47,948,220 Ops/sec
clsx str + obj 28,805,584 Ops/sec
String based (return struct) 16,031,536 Ops/sec
String based (if-else struct) 13,237,689 Ops/sec
Entries, filter, map, join 9,175,399 Ops/sec
Array based 8,447,717 Ops/sec