Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/110.0
Firefox 110
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
classnames 2945224.5 Ops/sec
clsx 4584321.5 Ops/sec
Array based 2929114.8 Ops/sec
String based (return struct) 4866561.5 Ops/sec
String based (if-else struct) 4867917.0 Ops/sec
Entries, filter, map, join 4443905.0 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


;