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

Side by Side Diff: chrome/test/data/third_party/spaceport/README.chromium

Issue 11314012: Add spaceport benchmark to Chrome Remote Control. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix bug Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/test/data/third_party/spaceport/js/tests/sprites.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Name: HTML5 Game Benchmarks 1 Name: HTML5 Game Benchmarks
2 URL: git://github.com/sibblingz/PerfMarks 2 URL: git://github.com/sibblingz/PerfMarks
3 URL: http://spaceport.io/community/perfmarks 3 URL: http://spaceport.io/community/perfmarks
4 Version: 0 4 Version: 0
5 Date: May 14, 2012 5 Date: May 14, 2012
6 Revision: c2dcbffeb492430c27160cb1ba5d6f1a2bf75d0a 6 Revision: c2dcbffeb492430c27160cb1ba5d6f1a2bf75d0a
7 License: Various, see license file 7 License: Various, see license file
8 License File: LICENSE 8 License File: LICENSE
9 9
10 Additional files, not in the original suite: 10 Additional files, not in the original suite:
11 README.chromium 11 README.chromium
12 12
13 Modifications to the test suite to enable running as a cross browser performance test. 13 Modifications to the test suite to enable running as a cross browser performance test.
14 js/index.js 14 js/index.js
15 15
16 How to update: 16 How to update:
17 17
18 In js/index.js, change the 'step' attribute to add the required console.log 18 1. In js/index.js, change the 'step' attribute to add the required console.log
19 statements. Below is the patch. 19 statements. Below is the patch.
20 20
21 diff --git a/js/index.js b/js/index.js 21 diff --git a/js/index.js b/js/index.js
22 index 2c23d0d..059a57a 100644 22 index 2c23d0d..059a57a 100644
23 --- a/js/index.js 23 --- a/js/index.js
24 +++ b/js/index.js 24 +++ b/js/index.js
25 @@ -36,17 +36,25 @@ define([ 'tests/performance', 'testDom', 'testRunner', 'tabl es', 'util/report', 25 @@ -36,17 +36,25 @@ define([ 'tests/performance', 'testDom', 'testRunner', 'tabl es', 'util/report',
26 function runPerformanceTests(callback) { 26 function runPerformanceTests(callback) {
27 callback = ensureCallback(callback); 27 callback = ensureCallback(callback);
28 28
(...skipping 13 matching lines...) Expand all
42 + return testDone(err, name, results); 42 + return testDone(err, name, results);
43 + } 43 + }
44 }); 44 });
45 } 45 }
46 46
47 function runAndUploadPerformanceTests(callback) { 47 function runAndUploadPerformanceTests(callback) {
48 callback = ensureCallback(callback); 48 callback = ensureCallback(callback);
49 49
50 runPerformanceTests(function (err, results) { 50 runPerformanceTests(function (err, results) {
51 if (err) return callback(err); 51 if (err) return callback(err);
52
53 2. In js/tests/sprites.js, apply the below patch to keep too many objects from
54 being created on fast desktop machines.
55
56 diff --git a/chrome/test/data/third_party/spaceport/js/tests/sprites.js b/chrome /test/data/third_party/spaceport/js/tests/s
57 index b491fe6..64b2d03 100644
58 --- a/chrome/test/data/third_party/spaceport/js/tests/sprites.js
59 +++ b/chrome/test/data/third_party/spaceport/js/tests/sprites.js
60 @@ -168,7 +168,7 @@ define([ 'sprites/sources', 'sprites/transformers', 'sprites /renderers', 'util/e
61 rawData.push([ objectCount, results ]);
62
63 var timePerObjectEstimate = 1/(objectCount*results.fps);
64 - var estimatedMaxObjects = Math.floor(1/(targetFramerate * timeP erObjectEstimate));
65 + var estimatedMaxObjects = Math.min(5000, Math.floor(1/(targetFr amerate * timePerObjectEstimate)));
66
67 var nextObjectCount = nextNumberToTry(fpsResults, estimatedMaxO bjects);
68 test(nextObjectCount);
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/third_party/spaceport/js/tests/sprites.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698