Run details:
Mozilla/5.0 (Linux; Android 13; LE2101) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36
Chrome Mobile 109
Android
Mobile
one year ago
Test name Executions per second
classnames 1021227.1 Ops/sec
clsx 1284401.8 Ops/sec
Array based 1136699.5 Ops/sec
String based (return struct) 1370608.0 Ops/sec
String based (if-else struct) 1395646.1 Ops/sec
Entries, filter, map, join 1307042.4 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