Run details:
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0
Firefox 80
Fedora
Desktop
4 years ago
Test name Executions per second
classnames 920843.8 Ops/sec
clsx 1769111.8 Ops/sec
Array based 1120917.8 Ops/sec
String based (return struct) 1483809.5 Ops/sec
String based (if-else struct) 1375176.6 Ops/sec
Entries, filter, map, join 1753312.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


;