blob: f206ce4896ecfb83f6592d718df189e538a2a873 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<script src="../resources/runner.js"></script>
<script>
var numCreated = 100;
function testCreation() {
(function() {
var canvases = [];
for (var i = 0; i < numCreated; i += 16) {
var canvas = document.createElement("canvas");
canvas.width = i;
canvas.height = i;
var context = canvas.getContext("2d");
context.fillRect(0, 0, 1, 1);
canvases.push(canvas);
}
})();
if (window.GCController)
window.GCController.collect();
}
PerfTestRunner.measureRunsPerSecond({run: function() {
testCreation();
}});
</script>
</body>
</html>