Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0
Firefox 118
Windows
Desktop
one year ago
Test name Executions per second
clsx str + obj 3495221.5 Ops/sec
clsx str + cond 4690653.5 Ops/sec
Array based 1820775.4 Ops/sec
String based (return struct) 3208078.2 Ops/sec
String based (if-else struct) 3198816.8 Ops/sec
Entries, filter, map, join 2962728.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • clsx str + obj

  • clsx str + cond

  • Array based

  • String based (return struct)

  • String based (if-else struct)

  • Entries, filter, map, join


;