Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
classnames 1295921.1 Ops/sec
clsx 1954846.9 Ops/sec
Array based 1453720.9 Ops/sec
String based (return struct) 2513970.2 Ops/sec
String based (if-else struct) 2488844.0 Ops/sec
Entries, filter, map, join 2523520.8 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


;