Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Linux
Desktop
one year ago
Test name Executions per second
classnames 1161390.6 Ops/sec
clsx 2053395.6 Ops/sec
Array based 1170998.5 Ops/sec
String based (return struct) 1916103.8 Ops/sec
String based (if-else struct) 1975457.1 Ops/sec
Entries, filter, map, join 1765635.1 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


;