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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/perf/large-inlined-script.html
diff --git a/LayoutTests/http/tests/perf/large-inlined-script.html b/LayoutTests/http/tests/perf/large-inlined-script.html
index 90ce5971cb5be3e4ebb3cecc4faca3a88f79d52b..85bb51253e8517a91a24ad983f4ff88256e4796b 100644
--- a/LayoutTests/http/tests/perf/large-inlined-script.html
+++ b/LayoutTests/http/tests/perf/large-inlined-script.html
@@ -1,32 +1,26 @@
<html>
<head>
-<script src="/js-test-resources/magnitude-perf.js"></script>
<script>
-function setupFunction(magnitude) { }
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
-function test(magnitude, callback)
-{
+window.addEventListener('load', function() {
function finish()
{
iframe.remove();
- callback();
+ testRunner.notifyDone();
}
window._iframeLoaded = finish;
var iframe = document.createElement("iframe");
document.body.appendChild(iframe);
- iframe.src = "resources/page-with-large-script.cgi?" + magnitude;
-}
+ iframe.src = "resources/page-with-large-script.cgi?1000000";
+}, false);
-Magnitude.description("This tests time complexity of parsing HTML with large inlined script.");
-Magnitude.initialExponent = 17;
-Magnitude.numPoints = 2;
-Magnitude.trim = 0;
-Magnitude.tolerance = 0.33;
-Magnitude.numTrials = 4;
-Magnitude.successThreshold = 0.25; // 1 out of 4
-Magnitude.runAsync(setupFunction, test, Magnitude.LINEAR);
</script>
</head>
<body>
+<p>This tests time complexity of parsing HTML with large inlined script.</p>
</body>
</html>
« 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