static rfb::IntParameter width("width", "Frame buffer width", 0);
static rfb::IntParameter height("height", "Frame buffer height", 0);
+static rfb::IntParameter count("count", "Number of benchmark iterations", 9);
static rfb::StringParameter format("format", "Pixel format (e.g. bgr888)", "");
} while (!sorted);
}
-static const int runCount = 9;
-
static void usage(const char *argv0)
{
fprintf(stderr, "Syntax: %s [options] <rfb file>\n", argv0);
const char *fn;
- double times[runCount], dev[runCount];
- double median, meddev, ratio;
- unsigned long long bytes, equivalent;
-
fn = NULL;
for (i = 1; i < argc; i++) {
if (rfb::Configuration::setParam(argv[i]))
fn = argv[i];
}
+ int runCount = count;
+ double times[runCount], dev[runCount];
+ double median, meddev, ratio;
+ unsigned long long bytes, equivalent;
+
if (fn == NULL) {
fprintf(stderr, "No file specified!\n\n");
usage(argv[0]);