Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/111.0.5563.101 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 111
iOS 16.4
Mobile
one year ago
Test name Executions per second
classnames 1327152.5 Ops/sec
clsx 1320173.4 Ops/sec
Array based 878876.9 Ops/sec
String based (return struct) 1034439.1 Ops/sec
String based (if-else struct) 1048144.8 Ops/sec
Entries, filter, map, join 1096514.8 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


;