Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Linux
Desktop
2 years ago
Test name Executions per second
classnames 1486721.8 Ops/sec
clsx 2206709.0 Ops/sec
Array based 1665295.0 Ops/sec
String based (return struct) 2108367.0 Ops/sec
String based (if-else struct) 2146495.5 Ops/sec
Entries, filter, map, join 1873722.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • classnames

  • clsx

  • Array based

  • String based (return struct)

  • String based (if-else struct)

  • Entries, filter, map, join


;