Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Ubuntu
Desktop
2 years ago
Test name Executions per second
classnames 957816.6 Ops/sec
clsx 1522197.5 Ops/sec
Array based 820387.3 Ops/sec
String based (return struct) 1470804.9 Ops/sec
String based (if-else struct) 1523293.2 Ops/sec
Entries, filter, map, join 1254476.0 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


;