Test case name | Result |
---|---|
classnames | |
clsx | |
Array based | |
String based (return struct) | |
String based (if-else struct) | |
Entries, filter, map, join | |
Keys, filter, map, join |
Test name | Executions per second |
---|---|
classnames | 1075789.2 Ops/sec |
clsx | 1471799.2 Ops/sec |
Array based | 1180271.4 Ops/sec |
String based (return struct) | 1645721.2 Ops/sec |
String based (if-else struct) | 1668974.9 Ops/sec |
Entries, filter, map, join | 1413105.2 Ops/sec |
Keys, filter, map, join | 1354008.5 Ops/sec |