Run details:
Mozilla/5.0 (Linux; Android 11) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Mobile Safari/537.36
Chrome Mobile 96
Android
Mobile
3 years ago
Test name Executions per second
classnames 1908381.6 Ops/sec
clsx (classnames api) 3460872.0 Ops/sec
clsx (objects) 3321284.5 Ops/sec
clsx (arguments) 3743022.8 Ops/sec
clsx (array) 3252976.5 Ops/sec
HTML Preparation code:
Tests:
  • classnames

  • clsx (classnames api)

  • clsx (objects)

  • clsx (arguments)

  • clsx (array)