Run details:
Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/113.0 Firefox/113.0
Firefox Mobile 113
Android
Mobile
one year ago
Test name Executions per second
classnames 719626.3 Ops/sec
clsx 1458110.0 Ops/sec
Array based 581355.4 Ops/sec
String based (return struct) 1657230.2 Ops/sec
String based (if-else struct) 1653139.2 Ops/sec
Entries, filter, map, join 1704578.6 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