Run details:
Mozilla/5.0 (Linux; Android 12; SM-G973F) 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 673009.2 Ops/sec
clsx 978849.3 Ops/sec
Array based 756192.1 Ops/sec
String based (return struct) 937859.1 Ops/sec
String based (if-else struct) 999610.6 Ops/sec
Entries, filter, map, join 833095.5 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