Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Linux
Desktop
one year ago
Test name Executions per second
classnames 1160450.5 Ops/sec
clsx 2189592.5 Ops/sec
Array based 1041868.2 Ops/sec
String based (return struct) 2025949.9 Ops/sec
String based (if-else struct) 2008494.4 Ops/sec
Entries, filter, map, join 1888374.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