Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:81.0) Gecko/20100101 Firefox/81.0
Firefox 81
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
classnames 1290120.5 Ops/sec
clsx 2315503.0 Ops/sec
Array based 1528954.0 Ops/sec
String based (return struct) 2084696.5 Ops/sec
String based (if-else struct) 2075375.0 Ops/sec
Entries, filter, map, join 2565275.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


;