Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Linux
Desktop
one year ago
Test name Executions per second
classnames 2567052.0 Ops/sec
clsx 4018246.0 Ops/sec
Array based 2651669.2 Ops/sec
String based (return struct) 4838786.5 Ops/sec
String based (if-else struct) 4894886.5 Ops/sec
Entries, filter, map, join 4683733.5 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


;