-
Notifications
You must be signed in to change notification settings - Fork 4.9k
/
PerfOptions.cs
60 lines (43 loc) · 2.56 KB
/
PerfOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using CommandLine;
using System;
using System.Collections.Generic;
namespace Azure.Test.Perf
{
public class PerfOptions
{
[Option('d', "duration", Default = 10, HelpText = "Duration of test in seconds")]
public int Duration { get; set; }
[Option("insecure", HelpText = "Allow untrusted SSL certs")]
public bool Insecure { get; set; }
[Option('i', "iterations", Default = 1, HelpText = "Number of iterations of main test loop")]
public int Iterations { get; set; }
[Option("job-statistics", HelpText = "Print job statistics (used by automation)")]
public bool JobStatistics { get; set; }
[Option('l', "latency", HelpText = "Track and print per-operation latency statistics")]
public bool Latency { get; set; }
[Option("max-io-completion-threads", HelpText = "The maximum number of asynchronous I/O threads that the thread pool creates on demand")]
public int? MaxIOCompletionThreads { get; set; }
[Option("max-worker-threads", HelpText = "The maximum number of worker threads that the thread pool creates on demand")]
public int? MaxWorkerThreads { get; set; }
[Option("min-io-completion-threads", HelpText = "The minimum number of asynchronous I/O threads that the thread pool creates on demand")]
public int? MinIOCompletionThreads { get; set; }
[Option("min-worker-threads", HelpText = "The minimum number of worker threads that the thread pool creates on demand")]
public int? MinWorkerThreads { get; set; }
[Option("no-cleanup", HelpText = "Disables test cleanup")]
public bool NoCleanup { get; set; }
[Option('p', "parallel", Default = 1, HelpText = "Number of operations to execute in parallel")]
public int Parallel { get; set; }
[Option('r', "rate", HelpText = "Target throughput (ops/sec)")]
public int? Rate { get; set; }
[Option("status-interval", Default = 1, HelpText = "Interval to write status to console in seconds")]
public int StatusInterval { get; set; }
[Option("sync", HelpText = "Runs sync version of test")]
public bool Sync { get; set; }
[Option('x', "test-proxies", Separator = ';', HelpText = "URIs of TestProxy Servers (separated by ';')")]
public IEnumerable<Uri> TestProxies { get; set; }
[Option('w', "warmup", Default = 5, HelpText = "Duration of warmup in seconds")]
public int Warmup { get; set; }
}
}