HTML Preparation code:
Tests:
  • classnames

  • clsx (classnames api)

  • clsx (objects)

  • clsx (arguments)

  • clsx (array)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    classnames
    clsx (classnames api)
    clsx (objects)
    clsx (arguments)
    clsx (array)

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
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 on Windows
View result in a separate tab
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