Run details:
Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0
Firefox 91
Windows 8.1
Desktop
3 years ago
Test name Executions per second
classnames 152444.0 Ops/sec
clsx 1153344.5 Ops/sec
Array based 580707.9 Ops/sec
String based (return struct) 780162.1 Ops/sec
String based (if-else struct) 622334.6 Ops/sec
Entries, filter, map, join 717977.6 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


;