Repository navigation
Expand file tree
/
Copy pathrunnerconfig.default.jsonc
More file actions
213 lines (213 loc) · 8.29 KB
/
Copy pathrunnerconfig.default.jsonc
File metadata and controls
213 lines (213 loc) · 8.29 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
{
"ConnectionString": "Server=tcp:localhost; Integrated Security=true; Initial Catalog=sqlclient-perf-db;",
// Enable this flag to enable managed SNI on Windows.
"UseManagedSniOnWindows": false,
// Enable this flag to select the new channel-based connection pool
// (ChannelDbConnectionPool) instead of the legacy WaitHandleDbConnectionPool.
// This is a process-level setting (the pool implementation switch is cached the
// first time a pool is created), so comparing the two pools requires two runs:
// once with this flag false (legacy) and once true (new). See issue #3356.
"UseConnectionPoolV2": false,
// Enable this flag to enable optimized async behavior in SqlClient.
// This is useful for benchmarking packet multiplexing and async performance improvements.
"UseOptimizedAsyncBehaviour": true,
// Enable this flag to get prompted to attach a profiler when running the performance tests.
// This is useful for capturing event source traces when running a performance test on any OS.
// On Windows, you can also set UseNativeMemoryAndETWProfiler=true to attach ETW diagnosers automatically.
"WaitForProfiler": false,
// Enable this flag to enable the NativeMemoryProfiler and ETW profiler on Windows (only).
// This is useful for capturing native memory allocation traces when running a performance test on Windows.
// Note: This flag cannot be enabled on non-Windows OSes as the NativeMemoryProfiler is not supported on non-Windows OSes.
"UseNativeMemoryAndETWProfiler": false,
// This section contains the configuration for each benchmark.
// You can enable/disable benchmarks and configure the number of iterations, invocations,
// warmup runs, and row count for each benchmark.
//
// Two optional per-benchmark settings are available for slow benchmarks:
// "TimeoutMinutes" - overrides BenchmarkDotNet's 5 minute in-process execution timeout.
// Omit (or set 0) to keep the default. Benchmarks that exceed it fail
// with "takes too long to run. Prefer to use out-of-process
// toolchains for long-running benchmarks." Note that switching to an
// out-of-process toolchain is NOT viable for this suite, because the
// AppContext switches above only apply to the process running Main.
// "RunStrategy" - "Throughput" (default) or "Monitoring". Use "Monitoring" when a
// single operation takes seconds, to skip the harness-overhead
// measurement that "Throughput" performs.
"Benchmarks": {
"SqlConnectionRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 50,
"InvocationCount":30,
"WarmupCount": 5,
"RowCount": 0
},
"SqlCommandRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 2,
"WarmupCount": 1,
"RowCount": 10000
},
"SqlBulkCopyRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 10000
},
"DataTypeReaderRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 2,
"WarmupCount": 1,
"RowCount": 1000
},
"AlwaysEncryptedDataTypeReaderRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 2,
"WarmupCount": 1,
"RowCount": 1000
},
// Keep default LOB runs bounded with 1 and 5 MiB payloads and three iterations.
// Override PayloadSizesBytes for larger workloads. Monitoring skips harness-overhead
// measurements; TimeoutMinutes remains a per-case limit for slower transfers.
"LargeDataReadRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 3,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0,
// Byte-valued sizes apply to binary and UTF-16 text, across all accessor paths.
"PayloadSizesBytes": [1048576, 5242880],
"CommandTimeoutSeconds": 1800,
"RunStrategy": "Monitoring",
"TimeoutMinutes": 120
},
"AlwaysEncryptedLargeDataReadRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 3,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0,
"PayloadSizesBytes": [1048576, 5242880],
"RunStrategy": "Monitoring",
"TimeoutMinutes": 30
},
"MarsOverheadRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 1000
},
"ParallelAsyncConnectionRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0
},
"CancellationTokenReadAsyncRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 10000
},
"SequentialXmlReadRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0
},
"JsonVsVarcharReadRunnerConfig": {
"Enabled": false,
"LaunchCount": 1,
"IterationCount": 100,
"InvocationCount": 1,
"WarmupCount": 5,
"RowCount": 10000
},
"BeginTransactionRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 2,
"WarmupCount": 1,
"RowCount": 0
},
"TransactionScopeIsolationRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0
},
"ConnectionPoolStressRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 20,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0
},
"ConnectionPoolContentionRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 15,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0
},
"ConnectionPoolChurnRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 15,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0
},
// Each iteration times a single checkout, so it needs more iterations than the others
// for a stable median.
"ConnectionPoolIdleCheckoutRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 50,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0
},
"ConnectionPoolRampRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 15,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0
},
// Measures tail latency from threadpool starvation, so it needs more iterations
// than the others: a stall shows up in the distribution, not in the median.
"ConnectionPoolThreadPoolPressureRunnerConfig": {
"Enabled": true,
"LaunchCount": 1,
"IterationCount": 25,
"InvocationCount": 1,
"WarmupCount": 1,
"RowCount": 0
}
}
}