File tree Expand file tree Collapse file tree 10 files changed +44
-2
lines changed
test/micro/org/openjdk/bench/java/io Expand file tree Collapse file tree 10 files changed +44
-2
lines changed Original file line number Diff line number Diff line change 30
30
31
31
@ BenchmarkMode (Mode .AverageTime )
32
32
@ OutputTimeUnit (TimeUnit .MICROSECONDS )
33
- @ Fork (value = 1 , warmups = 0 )
33
+ @ Fork (2 )
34
34
@ Measurement (iterations = 6 , time = 1 )
35
- @ Warmup (iterations =2 , time = 2 )
35
+ @ Warmup (iterations =4 , time = 2 )
36
36
@ State (Scope .Benchmark )
37
37
public class DataOutputStreamTest {
38
38
Original file line number Diff line number Diff line change 38
38
*/
39
39
@ BenchmarkMode (Mode .Throughput )
40
40
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
41
+ @ Fork (2 )
42
+ @ Warmup (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
43
+ @ Measurement (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
41
44
@ State (Scope .Thread )
42
45
public class FileChannelRead {
43
46
Original file line number Diff line number Diff line change 37
37
*/
38
38
@ BenchmarkMode (Mode .Throughput )
39
39
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
40
+ @ Fork (2 )
41
+ @ Warmup (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
42
+ @ Measurement (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
40
43
@ State (Scope .Thread )
41
44
public class FileChannelWrite {
42
45
Original file line number Diff line number Diff line change 37
37
*/
38
38
@ BenchmarkMode (Mode .Throughput )
39
39
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
40
+ @ Fork (2 )
41
+ @ Warmup (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
42
+ @ Measurement (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
40
43
@ State (Scope .Thread )
41
44
public class FileRead {
42
45
Original file line number Diff line number Diff line change 36
36
*/
37
37
@ BenchmarkMode (Mode .Throughput )
38
38
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
39
+ @ Fork (2 )
40
+ @ Warmup (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
41
+ @ Measurement (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
39
42
@ State (Scope .Thread )
40
43
public class FileWrite {
41
44
Original file line number Diff line number Diff line change 24
24
25
25
import org .openjdk .jmh .annotations .Benchmark ;
26
26
import org .openjdk .jmh .annotations .BenchmarkMode ;
27
+ import org .openjdk .jmh .annotations .Fork ;
28
+ import org .openjdk .jmh .annotations .Measurement ;
27
29
import org .openjdk .jmh .annotations .Mode ;
28
30
import org .openjdk .jmh .annotations .OutputTimeUnit ;
29
31
import org .openjdk .jmh .annotations .Scope ;
30
32
import org .openjdk .jmh .annotations .Setup ;
31
33
import org .openjdk .jmh .annotations .State ;
34
+ import org .openjdk .jmh .annotations .Warmup ;
32
35
import org .openjdk .jmh .infra .Blackhole ;
33
36
34
37
import java .io .ObjectStreamClass ;
41
44
*/
42
45
@ BenchmarkMode (Mode .AverageTime )
43
46
@ OutputTimeUnit (TimeUnit .NANOSECONDS )
47
+ @ Fork (2 )
48
+ @ Warmup (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
49
+ @ Measurement (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
44
50
@ State (Scope .Thread )
45
51
public class ObjectStreamClasses {
46
52
Original file line number Diff line number Diff line change 30
30
31
31
import org .openjdk .jmh .annotations .Benchmark ;
32
32
import org .openjdk .jmh .annotations .BenchmarkMode ;
33
+ import org .openjdk .jmh .annotations .Fork ;
33
34
import org .openjdk .jmh .annotations .Level ;
35
+ import org .openjdk .jmh .annotations .Measurement ;
34
36
import org .openjdk .jmh .annotations .Mode ;
35
37
import org .openjdk .jmh .annotations .OutputTimeUnit ;
36
38
import org .openjdk .jmh .annotations .Param ;
37
39
import org .openjdk .jmh .annotations .Scope ;
38
40
import org .openjdk .jmh .annotations .Setup ;
39
41
import org .openjdk .jmh .annotations .State ;
42
+ import org .openjdk .jmh .annotations .Warmup ;
40
43
import org .openjdk .jmh .annotations .TearDown ;
41
44
42
45
/**
45
48
*/
46
49
@ BenchmarkMode (Mode .Throughput )
47
50
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
51
+ @ Fork (2 )
52
+ @ Warmup (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
53
+ @ Measurement (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
48
54
@ State (Scope .Thread )
49
55
public class RandomAccessRead {
50
56
Original file line number Diff line number Diff line change 30
30
31
31
import org .openjdk .jmh .annotations .Benchmark ;
32
32
import org .openjdk .jmh .annotations .BenchmarkMode ;
33
+ import org .openjdk .jmh .annotations .Fork ;
33
34
import org .openjdk .jmh .annotations .Level ;
35
+ import org .openjdk .jmh .annotations .Measurement ;
34
36
import org .openjdk .jmh .annotations .Mode ;
35
37
import org .openjdk .jmh .annotations .OutputTimeUnit ;
36
38
import org .openjdk .jmh .annotations .Param ;
37
39
import org .openjdk .jmh .annotations .Scope ;
38
40
import org .openjdk .jmh .annotations .Setup ;
39
41
import org .openjdk .jmh .annotations .State ;
42
+ import org .openjdk .jmh .annotations .Warmup ;
40
43
import org .openjdk .jmh .annotations .TearDown ;
41
44
42
45
/**
45
48
*/
46
49
@ BenchmarkMode (Mode .Throughput )
47
50
@ OutputTimeUnit (TimeUnit .MILLISECONDS )
51
+ @ Fork (2 )
52
+ @ Warmup (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
53
+ @ Measurement (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
48
54
@ State (Scope .Thread )
49
55
public class RandomAccessWrite {
50
56
Original file line number Diff line number Diff line change 25
25
import org .openjdk .bench .java .io .BlackholedOutputStream ;
26
26
import org .openjdk .jmh .annotations .Benchmark ;
27
27
import org .openjdk .jmh .annotations .BenchmarkMode ;
28
+ import org .openjdk .jmh .annotations .Fork ;
29
+ import org .openjdk .jmh .annotations .Measurement ;
28
30
import org .openjdk .jmh .annotations .Mode ;
29
31
import org .openjdk .jmh .annotations .OutputTimeUnit ;
30
32
import org .openjdk .jmh .annotations .Scope ;
31
33
import org .openjdk .jmh .annotations .Setup ;
32
34
import org .openjdk .jmh .annotations .State ;
33
35
import org .openjdk .jmh .annotations .TearDown ;
36
+ import org .openjdk .jmh .annotations .Warmup ;
34
37
import org .openjdk .jmh .infra .Blackhole ;
35
38
36
39
import java .io .IOException ;
41
44
42
45
@ BenchmarkMode (Mode .AverageTime )
43
46
@ OutputTimeUnit (TimeUnit .NANOSECONDS )
47
+ @ Fork (2 )
48
+ @ Warmup (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
49
+ @ Measurement (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
44
50
@ State (Scope .Thread )
45
51
public class SerializationWriteReplace {
46
52
Original file line number Diff line number Diff line change 24
24
25
25
import org .openjdk .jmh .annotations .Benchmark ;
26
26
import org .openjdk .jmh .annotations .BenchmarkMode ;
27
+ import org .openjdk .jmh .annotations .Fork ;
28
+ import org .openjdk .jmh .annotations .Measurement ;
27
29
import org .openjdk .jmh .annotations .Mode ;
28
30
import org .openjdk .jmh .annotations .OutputTimeUnit ;
29
31
import org .openjdk .jmh .annotations .Scope ;
30
32
import org .openjdk .jmh .annotations .Setup ;
31
33
import org .openjdk .jmh .annotations .State ;
34
+ import org .openjdk .jmh .annotations .Warmup ;
32
35
import org .openjdk .jmh .infra .Blackhole ;
33
36
34
37
import java .io .DataOutputStream ;
40
43
*/
41
44
@ BenchmarkMode (Mode .AverageTime )
42
45
@ OutputTimeUnit (TimeUnit .NANOSECONDS )
46
+ @ Fork (2 )
47
+ @ Warmup (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
48
+ @ Measurement (iterations = 4 , time = 2 , timeUnit = TimeUnit .SECONDS )
43
49
@ State (Scope .Thread )
44
50
public class UTF8 {
45
51
You can’t perform that action at this time.
0 commit comments