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

  • clsx

  • Custom implementation using reduce

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    classnames
    clsx
    Custom implementation using reduce

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-J810G) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/16.0 Chrome/92.0.4515.166 Mobile Safari/537.36
Chrome Mobile 92 on Android
View result in a separate tab
Test name Executions per second
classnames 103387.9 Ops/sec
clsx 149812.8 Ops/sec
Custom implementation using reduce 93391176.0 Ops/sec


;