Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Linux
Desktop
4 years ago
Test name Executions per second
classnames 599919.9 Ops/sec
clsx 1473433.0 Ops/sec
Array based 726905.4 Ops/sec
String based (return struct) 1167537.0 Ops/sec
String based (if-else struct) 1169499.0 Ops/sec
Entries, filter, map, join 1330905.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


;