Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: LayoutTests/http/tests/perf/large-inlined-script.html

Issue 661403003: Tune performance test parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/perf/large-inlined-script-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="/js-test-resources/magnitude-perf.js"></script>
4 <script> 3 <script>
5 function setupFunction(magnitude) { } 4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 }
6 8
7 function test(magnitude, callback) 9 window.addEventListener('load', function() {
8 {
9 function finish() 10 function finish()
10 { 11 {
11 iframe.remove(); 12 iframe.remove();
12 callback(); 13 testRunner.notifyDone();
13 } 14 }
14 window._iframeLoaded = finish; 15 window._iframeLoaded = finish;
15 var iframe = document.createElement("iframe"); 16 var iframe = document.createElement("iframe");
16 document.body.appendChild(iframe); 17 document.body.appendChild(iframe);
17 iframe.src = "resources/page-with-large-script.cgi?" + magnitude; 18 iframe.src = "resources/page-with-large-script.cgi?1000000";
18 } 19 }, false);
19 20
20 Magnitude.description("This tests time complexity of parsing HTML with large inl ined script.");
21 Magnitude.initialExponent = 17;
22 Magnitude.numPoints = 2;
23 Magnitude.trim = 0;
24 Magnitude.tolerance = 0.33;
25 Magnitude.numTrials = 4;
26 Magnitude.successThreshold = 0.25; // 1 out of 4
27 Magnitude.runAsync(setupFunction, test, Magnitude.LINEAR);
28 </script> 21 </script>
29 </head> 22 </head>
30 <body> 23 <body>
24 <p>This tests time complexity of parsing HTML with large inlined script.</p>
31 </body> 25 </body>
32 </html> 26 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/perf/large-inlined-script-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698