Run details:
Mozilla/5.0 (Android 13; Mobile; rv:121.0) Gecko/121.0 Firefox/121.0
Firefox Mobile 121
Android
Mobile
one year ago
Test name Executions per second
classnames 724335.9 Ops/sec
clsx 1197441.9 Ops/sec
Array based 708397.1 Ops/sec
String based (return struct) 1582460.4 Ops/sec
String based (if-else struct) 1549998.6 Ops/sec
Entries, filter, map, join 1421943.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