Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:79.0) Gecko/20100101 Firefox/79.0
Firefox 79
Mac OS X 10.15
Desktop
4 years ago
Test name Executions per second
classnames 1126847.9 Ops/sec
clsx 1979895.5 Ops/sec
Array based 1228390.2 Ops/sec
String based (return struct) 1591867.1 Ops/sec
String based (if-else struct) 1628364.8 Ops/sec
Entries, filter, map, join 2132138.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


;