Test case name | Result |
---|---|
classnames | |
clsx | |
Array based | |
String based (return struct) | |
String based (if-else struct) | |
Entries, filter, map, join | |
String literally |
Test name | Executions per second |
---|---|
classnames | 1924450.8 Ops/sec |
clsx | 2494723.2 Ops/sec |
Array based | 2646068.5 Ops/sec |
String based (return struct) | 3815738.0 Ops/sec |
String based (if-else struct) | 3668827.2 Ops/sec |
Entries, filter, map, join | 2579606.5 Ops/sec |
String literally | 1230488576.0 Ops/sec |