Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118
Ubuntu
Desktop
one year ago
Test name Executions per second
classnames 441783.1 Ops/sec
clsx 748316.4 Ops/sec
Array based 421483.5 Ops/sec
String based (return struct) 639502.3 Ops/sec
String based (if-else struct) 598008.8 Ops/sec
Entries, filter, map, join 662555.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


;