Run details:
Mozilla/5.0 (Android 14; Mobile; rv:123.0) Gecko/123.0 Firefox/123.0
Firefox Mobile 123
Android
Mobile
8 months ago
Test name Executions per second
classnames 549089.5 Ops/sec
clsx 1155862.2 Ops/sec
Array based 460473.6 Ops/sec
String based (return struct) 1723884.1 Ops/sec
String based (if-else struct) 1788500.0 Ops/sec
Entries, filter, map, join 1678706.5 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


;