Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
Firefox 131
Linux
Desktop
20 days ago
Test name Executions per second
classnames 1931080.6 Ops/sec
clsx 2906766.5 Ops/sec
Array based 2600990.8 Ops/sec
String based (return struct) 4205458.5 Ops/sec
String based (if-else struct) 4161355.5 Ops/sec
Entries, filter, map, join 2904640.8 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


;