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

Side by Side Diff: LayoutTests/perf/array-nested-loop.html

Issue 1149253002: Remove LayoutTests/perf and associated references (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
(Empty)
1 <script src="../resources/magnitude-perf.js"></script>
2 <script>
3 function setupFunction(magnitude)
4 {
5 array = [];
6 for (var i = 0; i < magnitude; i++) {
7 array[i] = i;
8 }
9 }
10
11 function test(magnitude)
12 {
13 for (var i = 0; i < array.length; i++) {
14 for (var j = 0; j < array.length; j++) {
15 var foo = array[i] + array[j];
16 }
17 }
18 }
19
20 Magnitude.description("Tests that doing a nested loop over an array is quadratic .");
21 // Quite noisy
22 // lax settings ok as simply verifying "significantly superlinear"
23 Magnitude.initialExponent = 9;
24 Magnitude.numPoints = 3;
25 Magnitude.numTrials = 8;
26 Magnitude.successThreshold = 0.25; // 2 out of 8
27 Magnitude.tolerance = 0.40;
28 Magnitude.run(setupFunction, test, Magnitude.POLYNOMIAL);
29 </script>
OLDNEW
« no previous file with comments | « LayoutTests/perf/append-text-nodes-without-renderers-expected.txt ('k') | LayoutTests/perf/array-nested-loop-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698