Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Windows
Desktop
one year ago
Test name Executions per second
classnames 1248971.9 Ops/sec
clsx 2176585.5 Ops/sec
Array based 1102190.8 Ops/sec
String based (return struct) 2126750.8 Ops/sec
String based (if-else struct) 2060321.4 Ops/sec
Entries, filter, map, join 1873035.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


;