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
6 months ago
Test name Executions per second
classnames 3059318.8 Ops/sec
clsx (classnames api) 4519157.0 Ops/sec
clsx (objects) 4569702.5 Ops/sec
clsx (arguments) 4985847.0 Ops/sec
clsx (array) 4564981.0 Ops/sec
HTML Preparation code:
Tests:
  • classnames

  • clsx (classnames api)

  • clsx (objects)

  • clsx (arguments)

  • clsx (array)