Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0
Firefox 108
Ubuntu
Desktop
one year ago
Test name Executions per second
classnames 1780486.2 Ops/sec
clsx 3130181.0 Ops/sec
Array based 1688108.1 Ops/sec
String based (return struct) 2959947.2 Ops/sec
String based (if-else struct) 3072677.8 Ops/sec
Entries, filter, map, join 2683989.8 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