OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="/js-test-resources/magnitude-perf.js"></script> |
| 4 <script> |
| 5 function setupFunction(magnitude) { } |
| 6 |
| 7 function test(magnitude, callback) |
| 8 { |
| 9 function finish() |
| 10 { |
| 11 iframe.remove(); |
| 12 callback(); |
| 13 } |
| 14 window._iframeLoaded = finish; |
| 15 var iframe = document.createElement("iframe"); |
| 16 document.body.appendChild(iframe); |
| 17 iframe.src = "resources/page-with-large-script.cgi?" + magnitude; |
| 18 } |
| 19 |
| 20 Magnitude.description("This tests time complexity of parsing HTML with large inl
ined script."); |
| 21 Magnitude.initialExponent = 15; |
| 22 Magnitude.numPoints = 4; |
| 23 Magnitude.tolerance = 0.25; |
| 24 Magnitude.numTrials = 5; |
| 25 Magnitude.successThreshold = 0.4; // 2 out of 5 |
| 26 Magnitude.runAsync(setupFunction, test, Magnitude.LINEAR); |
| 27 </script> |
| 28 </head> |
| 29 <body> |
| 30 </body> |
| 31 </html> |
OLD | NEW |