File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 14
14
import org .openjdk .jmh .annotations .State ;
15
15
import org .openjdk .jmh .annotations .Warmup ;
16
16
17
- @ Warmup (iterations = 3 )
18
- @ Measurement (iterations = 3 )
17
+ @ Warmup (iterations = 2 )
18
+ @ Measurement (iterations = 2 )
19
19
@ BenchmarkMode (Mode .SingleShotTime )
20
20
@ OutputTimeUnit (TimeUnit .SECONDS )
21
21
@ Fork (1 )
@@ -25,7 +25,7 @@ public class BenchMain {
25
25
@ Param ("2" )
26
26
int min ;
27
27
28
- @ Param ("1000 " )
28
+ @ Param ("100 " )
29
29
int max ;
30
30
31
31
@ Benchmark
Original file line number Diff line number Diff line change @@ -6,11 +6,10 @@ import java.util.concurrent.TimeUnit.NANOSECONDS
6
6
import java.util.concurrent.TimeUnit.SECONDS
7
7
import kotlin.math.*
8
8
9
-
10
9
@BenchmarkMode(Mode .AverageTime )
11
10
@OutputTimeUnit(NANOSECONDS )
12
- @Warmup(iterations = 5 , time = 1 , timeUnit = SECONDS )
13
- @Measurement(iterations = 5 , time = 1 , timeUnit = SECONDS )
11
+ @Warmup(iterations = 3 , time = 1 , timeUnit = SECONDS )
12
+ @Measurement(iterations = 3 , time = 1 , timeUnit = SECONDS )
14
13
@Fork(1 )
15
14
@State(Scope .Benchmark )
16
15
open class KotlinBench {
@@ -45,4 +44,4 @@ open class KotlinBench {
45
44
val bytes = ByteArray (size)
46
45
bytes[size - 1 ] = 10
47
46
}
48
- }
47
+ }
You can’t perform that action at this time.
0 commit comments