Crash in WebCore::RenderLayer::FilterInfo::updateReferenceFilterClients
[WebKit-https.git] / PerformanceTests / Canvas / reuse.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/runner.js"></script>
5 <script>
6
7 var numCreated = 1000;
8
9 function testCreation() {
10     (function() {
11         var canvases = [];
12         for (var i = 0; i < numCreated; i += 16) {
13             var canvas = document.createElement("canvas");
14             canvas.width = i;
15             canvas.height = i;
16             var context = canvas.getContext("2d");
17             context.fillRect(0, 0, 1, 1);
18             canvases.push(canvas);
19         }
20     })();
21     
22     if (window.GCController)
23         window.GCController.collect();
24 }
25
26 PerfTestRunner.measureRunsPerSecond({run: function() {
27     testCreation();
28 }});
29 </script>
30 </body>
31 </html>