Run details:
Mozilla/5.0 (Android 11; Mobile; rv:106.0) Gecko/106.0 Firefox/106.0
Firefox Mobile 106
Android
Mobile
2 years ago
Test name Executions per second
classnames 554788.1 Ops/sec
clsx 1135788.5 Ops/sec
Array based 556241.9 Ops/sec
String based (return struct) 1023742.5 Ops/sec
String based (if-else struct) 1185761.8 Ops/sec
Entries, filter, map, join 1203674.2 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