Commit ba6a1b1
authored
Update Cursively benchmark code. (#1)
* Update Cursively benchmark code.
- VisitPartialFieldContents is required for correctness
- Use the original byte array, since we have one, instead of forcing a stream around it
- Set iteration time to 1 second, to work around dotnet/BenchmarkDotNet#837 while we wait for a version of this package that includes dotnet/BenchmarkDotNet#1573
* Change the order of this check
Whether or not this is the optimal order is almost certain to depend on the data: data sets that would almost never use the pool would likely hurt more by doing it this way, especially if this were a real-world application since this would likely push a line out of the CPU cache for no reason.
Then again, a real-world application probably wouldn't use the pool conditionally like this, so there's not much of a reason NOT to either.1 parent 5f123e3 commit ba6a1b1
File tree
3 files changed
+48
-10
lines changed- source/CsvBenchmark
3 files changed
+48
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
207 | 216 | | |
208 | 217 | | |
209 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
210 | 227 | | |
211 | 228 | | |
212 | 229 | | |
| |||
217 | 234 | | |
218 | 235 | | |
219 | 236 | | |
| 237 | + | |
| 238 | + | |
220 | 239 | | |
221 | 240 | | |
222 | 241 | | |
223 | 242 | | |
224 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
225 | 246 | | |
226 | | - | |
227 | | - | |
| 247 | + | |
| 248 | + | |
228 | 249 | | |
229 | | - | |
230 | | - | |
| 250 | + | |
231 | 251 | | |
232 | 252 | | |
233 | 253 | | |
| |||
352 | 372 | | |
353 | 373 | | |
354 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
355 | 378 | | |
356 | 379 | | |
357 | 380 | | |
| |||
361 | 384 | | |
362 | 385 | | |
363 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
364 | 393 | | |
365 | 394 | | |
366 | 395 | | |
| |||
398 | 427 | | |
399 | 428 | | |
400 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
401 | 435 | | |
402 | 436 | | |
403 | 437 | | |
404 | 438 | | |
405 | 439 | | |
406 | 440 | | |
407 | | - | |
| 441 | + | |
408 | 442 | | |
409 | 443 | | |
410 | | - | |
411 | | - | |
| 444 | + | |
412 | 445 | | |
413 | 446 | | |
414 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| |||
0 commit comments