Run details:
Mozilla/5.0 (Linux; Android 12; RMX3370 Build/RKQ1.211103.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/107.0.5304.105 Mobile Safari/537.36
Chrome Mobile 107
Android
Mobile
one year ago
Test name Executions per second
classnames 893902.5 Ops/sec
clsx 0.0 Ops/sec
Array based 1043595.1 Ops/sec
String based (return struct) 1349051.5 Ops/sec
String based (if-else struct) 1328928.2 Ops/sec
Entries, filter, map, join 1173640.1 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


;