1<!DOCTYPE html>
2<body>
3<script src="/resources/runner.js"></script>
4<script>
5var spec = PerfTestRunner.loadFile("resources/html5.html");
6
7PerfTestRunner.measureTime({run: function() {
8    var iframe = document.createElement("iframe");
9    iframe.style.display = "none";  // Prevent creation of the rendering tree, so we only test HTML parsing.
10    iframe.sandbox = 'allow-same-origin';  // Prevent external script loads which could cause write() to return before completing the parse.
11    document.body.appendChild(iframe);
12    iframe.contentDocument.open();
13    iframe.contentDocument.write(spec);
14    iframe.contentDocument.close();
15    document.body.removeChild(iframe);
16}});
17
18</script>
19</body>
20