Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Linux
Desktop
one year ago
Test name Executions per second
classnames 1594061.0 Ops/sec
clsx 2825802.5 Ops/sec
Array based 1469259.9 Ops/sec
String based (return struct) 2839974.5 Ops/sec
String based (if-else struct) 2896341.8 Ops/sec
Entries, filter, map, join 2692225.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


;