Run details:
Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/119.0 Firefox/119.0
Firefox Mobile 119
Android
Mobile
one year ago
Test name Executions per second
classnames 494626.3 Ops/sec
clsx 985296.6 Ops/sec
Array based 521592.6 Ops/sec
String based (return struct) 1318745.1 Ops/sec
String based (if-else struct) 1291441.2 Ops/sec
Entries, filter, map, join 1401166.8 Ops/sec
String literally 324668800.0 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

  • String literally


;