Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Chrome 114
Windows
Desktop
one year ago
Test name Executions per second
clsx str + obj 3013662.2 Ops/sec
clsx str + cond 2528826.8 Ops/sec
Array based 1708105.0 Ops/sec
String based (return struct) 2353461.8 Ops/sec
String based (if-else struct) 2373179.5 Ops/sec
Entries, filter, map, join 2010065.2 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


;