Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
Firefox 106
Windows
Desktop
2 years ago
Test name Executions per second
classnames string 2349580.8 Ops/sec
clsx string 4772232.5 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