Run details:
Mozilla/5.0 (Linux; Android 5.1.1; vivo Y31L) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.185 Mobile Safari/537.36
Chrome Mobile 86
Android 5.1.1
Mobile
3 years ago
Test name Executions per second
classnames 79661.1 Ops/sec
clsx 126465.1 Ops/sec
Array based 86253.7 Ops/sec
String based (return struct) 105524.9 Ops/sec
String based (if-else struct) 125972.2 Ops/sec
Entries, filter, map, join 82726.6 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


;