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 463198.5 Ops/sec
clsx 680774.0 Ops/sec
Array based 522082.5 Ops/sec
String based (return struct) 777415.0 Ops/sec
String based (if-else struct) 782339.6 Ops/sec
Entries, filter, map, join 614501.0 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