Run details:
Mozilla/5.0 (Linux; Android 13; Pixel 6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Mobile Safari/537.36
Chrome Mobile 106
Android
Mobile
one year ago
Test name Executions per second
classnames 1112271.0 Ops/sec
clsx 1449162.4 Ops/sec
Array based 1178923.0 Ops/sec
String based (return struct) 1469775.8 Ops/sec
String based (if-else struct) 1495173.5 Ops/sec
Entries, filter, map, join 1250135.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


;