Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107
Linux
Desktop
2 years ago
Test name Executions per second
classnames 640088.2 Ops/sec
clsx 888339.2 Ops/sec
Array based 630351.8 Ops/sec
String based (return struct) 992090.4 Ops/sec
String based (if-else struct) 867791.8 Ops/sec
Entries, filter, map, join 770804.9 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


;