Run details:
Mozilla/5.0 (Linux; Android 12; MI 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.104 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
2 years ago
Test name Executions per second
classnames 486046.2 Ops/sec
clsx 677835.9 Ops/sec
Array based 544862.2 Ops/sec
String based (return struct) 769305.8 Ops/sec
String based (if-else struct) 755771.0 Ops/sec
Entries, filter, map, join 477410.3 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


;