Run details:
Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/118.0 Firefox/118.0
Firefox Mobile 118
Android
Mobile
one year ago
Test name Executions per second
classnames 715201.8 Ops/sec
clsx 2102136.5 Ops/sec
Array based 672413.4 Ops/sec
String based (return struct) 2687790.8 Ops/sec
String based (if-else struct) 2643111.5 Ops/sec
Entries, filter, map, join 2574660.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


;