Skip to content

Commit e60af80

Browse files
committed
address pr feedback
1 parent 0dbcfe3 commit e60af80

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

tests/benchmarks/service-benchmarks/jvm/src/aws/sdk/kotlin/benchmarks/service/ProtocolBenchmarkHarness.kt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -95,25 +95,3 @@ class ProtocolBenchmarkHarness {
9595
println(table)
9696
}
9797
}
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

Comments
 (0)