Run details:
Mozilla/5.0 (Linux; Android 10; Redmi Note 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Mobile Safari/537.36
Chrome Mobile 105
Android
Mobile
2 years ago
Test name Executions per second
classnames 353258.6 Ops/sec
clsx 484772.3 Ops/sec
Array based 363622.7 Ops/sec
String based (return struct) 492425.9 Ops/sec
String based (if-else struct) 492830.3 Ops/sec
Entries, filter, map, join 412929.1 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


;