Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / PerformanceTests / Parser / url-parser.html
1 <!DOCTYPE html>
2 <body>
3 <script src="../resources/runner.js"></script>
4 <script>
5 var urls = PerfTestRunner.loadFile("resources/final-url-en").split("\n");
6 var anchor = document.createElement("a");
7
8 PerfTestRunner.measureRunsPerSecond({
9     description: "Measures performance of URL parsing by setting the href attribute on an <a> tag to many different URLs.",
10     run: function() {
11         for (var x = 0; x < urls.length; x++) {
12             anchor.href = urls[x];
13         }
14     }
15 });
16 </script>
17 </body>