Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
classnames 1146003.5 Ops/sec
clsx 1800410.9 Ops/sec
Array based 1147017.4 Ops/sec
String based (return struct) 2065505.1 Ops/sec
String based (if-else struct) 2076431.5 Ops/sec
Entries, filter, map, join 1954058.9 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


;