getImageData Performance
JavaScript performance comparison
Preparation code
<script language="JavaScript">
var canvas = document.createElement('canvas');
canvas.width = 1000;
canvas.height = 1000;
var context = canvas.getContext('2d');
context.fillStyle = '#abc';
context.fillRect(0, 0, 1000, 1000);
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
Test | Ops/sec | |
---|---|---|
One Pixel
|
|
pending… |
One Pixel Center
|
|
pending… |
10 by 10
|
|
pending… |
30 by 30
|
|
pending… |
900 by 1
|
|
pending… |
1 by 900
|
|
pending… |
100 by 100
|
|
pending… |
200 by 200
|
|
pending… |
500 by 500
|
|
pending… |
1000 by 1000
|
|
pending… |
1 by 100
|
|
pending… |
1 by 200
|
|
pending… |
1 by 500
|
|
pending… |
1 by 1000
|
|
pending… |
Perimeter
|
|
pending… |
Small Perimeter
|
|
pending… |
Smaller Perimeter
|
|
pending… |
One Pixel Again
|
|
pending… |
5 pixels
|
|
pending… |
Compare results of other browsers
Revisions
You can edit these tests or add even more tests to this page by appending /edit
to the URL.
- Revision 1: published John
- Revision 2: published
- Revision 3: published John
- Revision 5: published
- Revision 7: published
- Revision 8: published
- Revision 11: published
0 Comments