Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Linux
Desktop
one year ago
Test name Executions per second
classnames 2222835.5 Ops/sec
clsx 3862285.8 Ops/sec
Array based 2377163.8 Ops/sec
String based (return struct) 4124495.2 Ops/sec
String based (if-else struct) 4027359.5 Ops/sec
Entries, filter, map, join 3967639.2 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