image-vs-text
JavaScript performance comparison
Preparation code
<canvas id="canvas1" width="500" height="500"></canvas>
<script>
var can = document.getElementById('canvas1');
var ctx = can.getContext('2d');
var img = new Image();
img.src = "http://placekitten.com/100/100";
ctx.font = '72pt Verdana';
img.onload = function() {
ctx.drawImage(img, 0, 0);
}
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
text |
|
pending… |
image |
|
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 by Simon
- Revision 2: published by Simon
- Revision 3: published by Simon
- Revision 4: published by Simon
- Revision 5: published by Simon
- Revision 6: published
0 comments