File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
runtime/commonMain/src/kotlinx/benchmark Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 1
1
package kotlinx.benchmark
2
2
3
3
object DefaultDescriptorParameters {
4
- val iterations = 3
5
- val warmups = 3
6
- val iterationTime = IterationTime (1 , BenchmarkTimeUnit .SECONDS )
4
+ val iterations = 5
5
+ val warmups = 5
6
+ val iterationTime = IterationTime (10 , BenchmarkTimeUnit .SECONDS )
7
+ val outputTimeUnit = BenchmarkTimeUnit .SECONDS
8
+ val mode = Mode .Throughput
7
9
}
8
10
9
11
open class SuiteDescriptor <T >(
@@ -20,8 +22,8 @@ open class SuiteDescriptor<T>(
20
22
val warmups : Int = DefaultDescriptorParameters .warmups,
21
23
22
24
val iterationTime : IterationTime = DefaultDescriptorParameters .iterationTime,
23
- val outputTimeUnit : BenchmarkTimeUnit = BenchmarkTimeUnit . MILLISECONDS ,
24
- val mode : Mode = Mode . Throughput
25
+ val outputTimeUnit : BenchmarkTimeUnit = DefaultDescriptorParameters .outputTimeUnit ,
26
+ val mode : Mode = DefaultDescriptorParameters .mode
25
27
) {
26
28
private val _benchmarks = mutableListOf<BenchmarkDescriptor <T >>()
27
29
You can’t perform that action at this time.
0 commit comments