getImageData large canvas
JavaScript performance comparison
Preparation code
<script>
Benchmark.prototype.setup = function() {
var a = [],
canvas = document.createElement("canvas"),
context = canvas.getContext("2d");
canvas.width = 100;
canvas.height = 100;
};
Benchmark.prototype.teardown = function() {
console.log(a);
};
</script>
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
asdf |
|
pending… |
asdf2 |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments