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

Side by Side Diff: LayoutTests/perf/set-attribute.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 <!DOCTYPE html>
2 <script src="../resources/magnitude-perf.js"></script>
3 <script>
4 var key = 'counter';
5
6 function setupFunction(magnitude)
7 {
8 element = document.createElement('div');
9 counter = 0;
10 }
11
12 function test(magnitude)
13 {
14 element.setAttribute(key, counter ? counter-- : counter++);
15 }
16
17 Magnitude.description("Tests that setAttribute is constant time.");
18 Magnitude.numTrials = 5;
19 Magnitude.successThreshold = 0.40; // 2 out of 5
20 Magnitude.tolerance = 0.70;
21 Magnitude.trim = 2;
22 Magnitude.run(setupFunction, test, Magnitude.CONSTANT);
23 </script>
OLDNEW
« no previous file with comments | « LayoutTests/perf/compositor-touch-hit-rects-expected.txt ('k') | LayoutTests/perf/set-attribute-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698