Run details:
Mozilla/5.0 (Linux; Android 11; TECNO CE9) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Mobile Safari/537.36
Chrome Mobile 108
Android
Mobile
one year ago
Test name Executions per second
classnames 547823.0 Ops/sec
clsx 748952.4 Ops/sec
Array based 590370.7 Ops/sec
String based (return struct) 750622.0 Ops/sec
String based (if-else struct) 790045.2 Ops/sec
Entries, filter, map, join 730625.1 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


;