Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
classnames 1087836.5 Ops/sec
clsx 1855582.8 Ops/sec
Array based 1053025.6 Ops/sec
String based (return struct) 1911918.9 Ops/sec
String based (if-else struct) 2030391.8 Ops/sec
Entries, filter, map, join 1804743.6 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


;