Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0
Firefox 120
Linux
Desktop
11 months ago
Test name Executions per second
classnames 1871023.1 Ops/sec
clsx 2582539.0 Ops/sec
Array based 2020235.4 Ops/sec
String based (return struct) 3654794.8 Ops/sec
String based (if-else struct) 3787534.8 Ops/sec
Entries, filter, map, join 3450951.2 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


;