Run details:
Mozilla/5.0 (Linux; Android 10; VOG-L29) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.93 Mobile Safari/537.36
Chrome Mobile 88
Android
Mobile
3 years ago
Test name Executions per second
classnames 465771.7 Ops/sec
clsx 665788.4 Ops/sec
Array based 528684.9 Ops/sec
String based (return struct) 779407.7 Ops/sec
String based (if-else struct) 778695.1 Ops/sec
Entries, filter, map, join 599803.2 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