Run details:
Mozilla/5.0 (Linux; Android 10; SM-A205F) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Mobile Safari/537.36
Chrome Mobile 80
Android
Mobile
3 years ago
Test name Executions per second
classnames 250366.1 Ops/sec
clsx 329903.6 Ops/sec
Array based 256471.9 Ops/sec
String based (return struct) 343964.1 Ops/sec
String based (if-else struct) 349387.8 Ops/sec
Entries, filter, map, join 296531.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


;