This repository was archived by the owner on Dec 8, 2021. It is now read-only.
Commit fbdab30
authored
fix: clean up / fix ClientCount logic (#1175)
* fix: clean up / fix ClientCount logic
Removes the workaround for #1000 from the multiple rows benchmark.
Since we're no longer adjusting min, and the `Config` class already validates
`min_clients <= max_clients` we no longer need to do it here.
Fixes two small bugs in the existing code (AFAICT):
* `ClientCount` would usually (always?) return `min_clients` because
`min_clients <= max_clients` is generally true.
* No need to subtract 1 from `max_clients` when generating a random number.1 parent 620bb7c commit fbdab30
File tree
2 files changed
+9
-21
lines changed- google/cloud/spanner/benchmarks
2 files changed
+9
-21
lines changedLines changed: 7 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
| 385 | + | |
393 | 386 | | |
394 | | - | |
395 | | - | |
| 387 | + | |
| 388 | + | |
396 | 389 | | |
397 | 390 | | |
398 | 391 | | |
| |||
546 | 539 | | |
547 | 540 | | |
548 | 541 | | |
549 | | - | |
| 542 | + | |
550 | 543 | | |
551 | 544 | | |
552 | 545 | | |
| |||
763 | 756 | | |
764 | 757 | | |
765 | 758 | | |
766 | | - | |
| 759 | + | |
767 | 760 | | |
768 | 761 | | |
769 | 762 | | |
| |||
997 | 990 | | |
998 | 991 | | |
999 | 992 | | |
1000 | | - | |
| 993 | + | |
1001 | 994 | | |
1002 | 995 | | |
1003 | 996 | | |
| |||
1261 | 1254 | | |
1262 | 1255 | | |
1263 | 1256 | | |
1264 | | - | |
| 1257 | + | |
1265 | 1258 | | |
1266 | 1259 | | |
1267 | 1260 | | |
| |||
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 217 | + | |
| 218 | + | |
224 | 219 | | |
225 | 220 | | |
226 | 221 | | |
| |||
0 commit comments