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 460467.8 Ops/sec
clsx 672120.9 Ops/sec
Array based 527499.2 Ops/sec
String based (return struct) 775577.5 Ops/sec
String based (if-else struct) 802138.6 Ops/sec
Entries, filter, map, join 600685.9 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


;