Commit 8f4860d5 authored by eustas@chromium.org's avatar eustas@chromium.org

Tune performance test parameters.

BUG=413249
TBR=loislo@chromium.org
NOTRY=true

Review URL: https://codereview.chromium.org/661403003

git-svn-id: svn://svn.chromium.org/blink/trunk@183992 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 7d3e1aaf
This tests time complexity of parsing HTML with large inlined script.
PASS
<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>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment