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

Side by Side Diff: bench/benchmain.cpp

Issue 346263011: Bench: Change default maxMs from 4s to 1s. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "BenchLogger.h" 8 #include "BenchLogger.h"
9 #include "Benchmark.h" 9 #include "Benchmark.h"
10 #include "CrashHandler.h" 10 #include "CrashHandler.h"
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 DEFINE_string(mode, "normal", 242 DEFINE_string(mode, "normal",
243 "normal: draw to a normal canvas;\n" 243 "normal: draw to a normal canvas;\n"
244 "deferred: draw to a deferred canvas;\n" 244 "deferred: draw to a deferred canvas;\n"
245 "deferredSilent: deferred with silent playback;\n" 245 "deferredSilent: deferred with silent playback;\n"
246 "record: draw to an SkPicture;\n" 246 "record: draw to an SkPicture;\n"
247 "picturerecord: draw from an SkPicture to an SkPicture.\n"); 247 "picturerecord: draw from an SkPicture to an SkPicture.\n");
248 DEFINE_string(config, kDefaultsConfigStr, 248 DEFINE_string(config, kDefaultsConfigStr,
249 "Run configs given. By default, runs the configs marked \"runByDe fault\" in gConfigs."); 249 "Run configs given. By default, runs the configs marked \"runByDe fault\" in gConfigs.");
250 DEFINE_string(logFile, "", "Also write stdout here."); 250 DEFINE_string(logFile, "", "Also write stdout here.");
251 DEFINE_int32(minMs, 20, "Shortest time we'll allow a benchmark to run."); 251 DEFINE_int32(minMs, 20, "Shortest time we'll allow a benchmark to run.");
252 DEFINE_int32(maxMs, 4000, "Longest time we'll allow a benchmark to run."); 252 DEFINE_int32(maxMs, 1000, "Longest time we'll allow a benchmark to run.");
253 DEFINE_bool(runOnce, kIsDebug, "Run each bench exactly once and don't report tim ings."); 253 DEFINE_bool(runOnce, kIsDebug, "Run each bench exactly once and don't report tim ings.");
254 DEFINE_double(error, 0.01, 254 DEFINE_double(error, 0.01,
255 "Ratio of subsequent bench measurements must drop within 1±error t o converge."); 255 "Ratio of subsequent bench measurements must drop within 1±error t o converge.");
256 DEFINE_string(timeFormat, "%9.2f", "Format to print results, in milliseconds per 1000 loops."); 256 DEFINE_string(timeFormat, "%9.2f", "Format to print results, in milliseconds per 1000 loops.");
257 DEFINE_bool2(verbose, v, false, "Print more."); 257 DEFINE_bool2(verbose, v, false, "Print more.");
258 DEFINE_string(outResultsFile, "", "If given, the results will be written to the file in JSON format."); 258 DEFINE_string(outResultsFile, "", "If given, the results will be written to the file in JSON format.");
259 DEFINE_bool(dryRun, false, "Don't actually run the tests, just print what would have been done."); 259 DEFINE_bool(dryRun, false, "Don't actually run the tests, just print what would have been done.");
260 260
261 // Has this bench converged? First arguments are milliseconds / loop iteration, 261 // Has this bench converged? First arguments are milliseconds / loop iteration,
262 // last is overall runtime in milliseconds. 262 // last is overall runtime in milliseconds.
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 gContextFactory.destroyContexts(); 677 gContextFactory.destroyContexts();
678 #endif 678 #endif
679 return 0; 679 return 0;
680 } 680 }
681 681
682 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 682 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
683 int main(int argc, char * const argv[]) { 683 int main(int argc, char * const argv[]) {
684 return tool_main(argc, (char**) argv); 684 return tool_main(argc, (char**) argv);
685 } 685 }
686 #endif 686 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698