Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
2 years ago
Benchmark.js
Save transform Clear restore
521K/s
View exact numbers
| Test name |
Executions per second |
|
✓
Clear only
|
680,403 Ops/sec |
|
Save transform Clear restore
|
521,140 Ops/sec |
|
fillRect
|
473,716 Ops/sec |
|
w+=0
|
390,528 Ops/sec |
|
w=w
|
329,844 Ops/sec |
|
Canvas w with memo
|
12,289 Ops/sec |
|
createImageData
|
408 Ops/sec |
Tests:
-
Clear only
-
Save transform Clear restore
-
Canvas w with memo
-
w=w
-
w+=0
-
fillRect
-
createImageData