Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0
Chrome 126
Windows
Desktop
5 months ago
Test name Executions per second
classnames 4541000.0 Ops/sec
clsx (classnames api) 4670084.0 Ops/sec
clsx (objects) 4697179.5 Ops/sec
clsx (arguments) 5163801.0 Ops/sec
clsx (array) 4498271.0 Ops/sec
HTML Preparation code:
Tests:
  • classnames

  • clsx (classnames api)

  • clsx (objects)

  • clsx (arguments)

  • clsx (array)


;