Run details:
Mozilla/5.0 (Android 12; Mobile; rv:102.0) Gecko/102.0 Firefox/102.0
Firefox Mobile 102
Android
Mobile
2 years ago
Test name Executions per second
classnames 783922.4 Ops/sec
clsx 1779132.0 Ops/sec
Array based 866552.3 Ops/sec
String based (return struct) 1829406.8 Ops/sec
String based (if-else struct) 1837707.1 Ops/sec
Entries, filter, map, join 1808073.4 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