Run details:
Mozilla/5.0 (Linux; Android 12; M2007J3SY) 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 913664.5 Ops/sec
clsx 1218984.6 Ops/sec
Array based 992224.4 Ops/sec
String based (return struct) 1242634.0 Ops/sec
String based (if-else struct) 1259079.4 Ops/sec
Entries, filter, map, join 1181353.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


;