Run details:
Mozilla/5.0 (Linux; Android 13; Pixel 6 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36
Chrome Mobile 109
Android
Mobile
one year ago
Test name Executions per second
classnames 1115686.9 Ops/sec
clsx 1380237.6 Ops/sec
Array based 1116677.6 Ops/sec
String based (return struct) 1423626.2 Ops/sec
String based (if-else struct) 1420780.9 Ops/sec
Entries, filter, map, join 1190528.9 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