Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0
Firefox 124
Windows
Desktop
8 months ago
Test name Executions per second
var(unitless) + calc() + % 401.4 Ops/sec
var(%) + calc() 453.7 Ops/sec
Percentage 656.4 Ops/sec
var(unitless) + calc() + px 396.4 Ops/sec
px 671.5 Ops/sec
var(px) + calc() 393.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • var(unitless) + calc() + %

  • var(%) + calc()

  • Percentage

  • var(unitless) + calc() + px

  • px

  • var(px) + calc()