Script Preparation code:
Tests:

Historical Performance Data aggregated from 84 community runs

Desktop Results:
Chrome 74 runs
rect
3K/s
fillRect
521/s

Fastest: rect (5.5x faster)

View exact numbers
  • rect: 2,858 ops/sec
  • fillRect: 521 ops/sec
Firefox 10 runs
rect
6K/s
fillRect
1K/s

Fastest: rect (4.3x faster)

View exact numbers
  • rect: 5,869 ops/sec
  • fillRect: 1,366 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    fillRect
    rect

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:144.0) Gecko/20100101 Firefox/144.0
Firefox 144 on Mac OS X 10.15
View result in a separate tab
rect
19K/s
fillRect
993/s
View exact numbers
Test name Executions per second
rect 18,533 Ops/sec
fillRect 993 Ops/sec