Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Fedora
Desktop
2 years ago
Test name Executions per second
classnames 772340.6 Ops/sec
clsx 1251687.2 Ops/sec
Array based 551711.9 Ops/sec
String based (return struct) 1246999.0 Ops/sec
String based (if-else struct) 1181441.9 Ops/sec
Entries, filter, map, join 1108457.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