Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110
Windows
Desktop
one year ago
Test name Executions per second
classnames 4156959.2 Ops/sec
clsx (classnames api) 6889019.5 Ops/sec
clsx (objects) 6590064.0 Ops/sec
clsx (arguments) 7476165.0 Ops/sec
clsx (array) 6460909.5 Ops/sec
HTML Preparation code:
Tests:
  • classnames

  • clsx (classnames api)

  • clsx (objects)

  • clsx (arguments)

  • clsx (array)