The recursive tail call optimisation is wrong on closures
[WebKit-https.git] / PerformanceTests / Parser / textarea-parsing.html
1 <!DOCTYPE html>
2 <body>
3 <style>
4 textarea:valid {
5     background-color: lime;
6 }
7 textarea:invalid {
8     background-color: red;
9 }
10 </style>
11 <script src="../resources/runner.js"></script>
12 <div id="container"></div>
13 <script>
14 var htmlText = "<textarea maxlength=2147483647>";
15 for (var i = 0; i < 1000; ++i) {
16     htmlText += "A quick brown fox jumps over the lazy dog.\n" +
17         "A quick brown fox jumps over the lazy dog.\n" +
18         "<!-- comment -->\n";
19 }
20 htmlText += "</textarea>"
21
22 var container = document.getElementById('container');
23 PerfTestRunner.measureRunsPerSecond({run: function() {
24     container.innerHTML = htmlText;
25 }});
26 </script>
27 </body>