Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Windows
Desktop
one year ago
Test name Executions per second
classnames string 2349581.0 Ops/sec
clsx string 4772233.0 Ops/sec
classnames real case 3956335.0 Ops/sec
clsx real case 4989658.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • classnames string

  • clsx string

  • classnames real case

  • clsx real case