drawImage whole pixels
JavaScript performance comparison
Preparation code
<canvas id="screen"></canvas>
<script>
var ctx = document.getElementById("screen").getContext("2d");
ctx.scale(0.33,0.75);
var image = document.createElement("img");
image.src = "http://icons.iconarchive.com/icons/ph03nyx/super-mario/48/Retro-Mushroom-1UP-2-icon.png";
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
whole pixel |
|
pending… |
sub pixel |
|
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. Here’s a list of current revisions for this page:
- Revision 1: published
- Revision 7: published
- Revision 8: published
- Revision 9: published
- Revision 10: published by skyblue
- Revision 12: published
- Revision 13: published
- Revision 14: published by ryan jacobson
- Revision 16: published
- Revision 17: published
0 comments