HTML Preparation code:
Script Preparation code:
Tests:
  • classnames string

  • clsx string

  • classnames object

  • clsx object

  • classnames array

  • clsx array

  • Fast-ClassNames string

  • Fast-ClassNames object

  • Fast-ClassNames array

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    classnames string
    clsx string
    classnames object
    clsx object
    classnames array
    clsx array
    Fast-ClassNames string
    Fast-ClassNames object
    Fast-ClassNames array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36
Chrome 109 on Windows
View result in a separate tab
Test name Executions per second
classnames string 3757669.2 Ops/sec
clsx string 5189514.0 Ops/sec
classnames object 2996509.5 Ops/sec
clsx object 3509858.2 Ops/sec
classnames array 1213578.1 Ops/sec
clsx array 3305647.8 Ops/sec
Fast-ClassNames string 3468793.5 Ops/sec
Fast-ClassNames object 3217370.2 Ops/sec
Fast-ClassNames array 2916898.2 Ops/sec