| 546 | } |
| 547 | |
| 548 | int64_t getRandomKey(uint64_t nodeCount) { |
| 549 | if (forceHotProbability && deterministicRandom()->random01() < forceHotProbability) |
| 550 | return deterministicRandom()->randomInt64(0, nodeCount * hotKeyFraction) / |
| 551 | hotKeyFraction; // spread hot keys over keyspace |
| 552 | else |
| 553 | return deterministicRandom()->randomInt64(0, nodeCount); |
| 554 | } |
| 555 | |
| 556 | double sweepAlpha(double startTime) { |
| 557 | double sweepDuration = testDuration / rampSweepCount; |