We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dbcfe3 commit e60af80Copy full SHA for e60af80
tests/benchmarks/service-benchmarks/jvm/src/aws/sdk/kotlin/benchmarks/service/ProtocolBenchmarkHarness.kt
@@ -95,25 +95,3 @@ class ProtocolBenchmarkHarness {
95
println(table)
96
}
97
98
-
99
-private inline fun forAtLeast(runMode: RunMode, block: (iteration: Int) -> Unit) {
100
- val start = TimeSource.Monotonic.markNow()
101
102
- when (runMode) {
103
- is RunMode.Time -> {
104
- var cnt = 0
105
- while (start.elapsedNow() < runMode.time) {
106
- block(cnt)
107
- cnt++
108
- }
109
- println(" (completed $cnt iterations)")
110
111
112
- is RunMode.Iterations -> {
113
- repeat(runMode.iterations) { cnt ->
114
- block(cnt + 1)
115
116
- println(" (took ${start.elapsedNow()})")
117
118
119
-}
0 commit comments