Run details:
Mozilla/5.0 (Linux; Android 10; LYA-L09) 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 467212.2 Ops/sec
clsx 685383.6 Ops/sec
Array based 536645.4 Ops/sec
String based (return struct) 783062.6 Ops/sec
String based (if-else struct) 784947.8 Ops/sec
Entries, filter, map, join 620555.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


;