HTML Preparation code:
Script Preparation code:
Tests:
  • Single - opacity - setAttribute - opacity

  • Single - opacity - style.opacity

  • Group - opacity - setAttribute - Fill

  • Group - opacity - style.opacity

  • Single - fill - rgb + opacity

  • Single - fill - rgba

  • Group - fill - rgb + opacity

  • Group - fill - rgba

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Single - opacity - setAttribute - opacity
    Single - opacity - style.opacity
    Group - opacity - setAttribute - Fill
    Group - opacity - style.opacity
    Single - fill - rgb + opacity
    Single - fill - rgba
    Group - fill - rgb + opacity
    Group - fill - rgba

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 15_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.6.1 Mobile/15E148 Safari/604.1
Mobile Safari 15 on iOS 15.6.1
View result in a separate tab
Test name Executions per second
Single - opacity - setAttribute - opacity 165.5 Ops/sec
Single - opacity - style.opacity 197.8 Ops/sec
Group - opacity - setAttribute - Fill 403.6 Ops/sec
Group - opacity - style.opacity 376.5 Ops/sec
Single - fill - rgb + opacity 77.7 Ops/sec
Single - fill - rgba 145.0 Ops/sec
Group - fill - rgb + opacity 144.7 Ops/sec
Group - fill - rgba 182.3 Ops/sec