Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Firefox 112
Ubuntu
Desktop
one year ago
Test name Executions per second
classnames 1598374.9 Ops/sec
clsx 2599163.2 Ops/sec
Array based 1445082.1 Ops/sec
String based (return struct) 2627602.8 Ops/sec
String based (if-else struct) 2738769.8 Ops/sec
Entries, filter, map, join 2695571.5 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


;