|
16 | 16 | package software.amazon.awssdk.benchmark.apache5;
|
17 | 17 |
|
18 | 18 |
|
19 |
| -import org.openjdk.jmh.annotations.*; |
| 19 | +import java.util.concurrent.ExecutorService; |
| 20 | +import java.util.concurrent.Executors; |
| 21 | +import java.util.concurrent.Future; |
| 22 | +import java.util.concurrent.TimeUnit; |
| 23 | +import org.openjdk.jmh.annotations.Benchmark; |
| 24 | +import org.openjdk.jmh.annotations.BenchmarkMode; |
| 25 | +import org.openjdk.jmh.annotations.Fork; |
| 26 | +import org.openjdk.jmh.annotations.Level; |
| 27 | +import org.openjdk.jmh.annotations.Measurement; |
| 28 | +import org.openjdk.jmh.annotations.Mode; |
| 29 | +import org.openjdk.jmh.annotations.OutputTimeUnit; |
| 30 | +import org.openjdk.jmh.annotations.Param; |
| 31 | +import org.openjdk.jmh.annotations.Scope; |
| 32 | +import org.openjdk.jmh.annotations.Setup; |
| 33 | +import org.openjdk.jmh.annotations.State; |
| 34 | +import org.openjdk.jmh.annotations.TearDown; |
| 35 | +import org.openjdk.jmh.annotations.Warmup; |
20 | 36 | import org.openjdk.jmh.infra.Blackhole;
|
21 | 37 | import software.amazon.awssdk.auth.credentials.DefaultCredentialsProvider;
|
22 | 38 | import software.amazon.awssdk.benchmark.core.S3BenchmarkImpl;
|
|
28 | 44 | import java.time.Duration;
|
29 | 45 | import java.util.ArrayList;
|
30 | 46 | import java.util.List;
|
31 |
| -import java.util.concurrent.*; |
32 | 47 | import java.util.logging.Logger;
|
33 | 48 |
|
34 | 49 | @BenchmarkMode(Mode.Throughput)
|
35 |
| -@OutputTimeUnit(TimeUnit.SECONDS) |
| 50 | +@OutputTimeUnit(TimeUnit.MILLISECONDS) |
36 | 51 | @State(Scope.Benchmark)
|
37 | 52 | @Fork(value = 1, jvmArgs = {"-Xms2G", "-Xmx2G", "--enable-preview"})
|
38 |
| -@Warmup(iterations = 2, time = 10, timeUnit = TimeUnit.SECONDS) |
39 |
| -@Measurement(iterations = 3, time = 10, timeUnit = TimeUnit.SECONDS) |
| 53 | +@Warmup(iterations = 3, time = 15, timeUnit = TimeUnit.SECONDS) |
| 54 | +@Measurement(iterations = 5, time = 10, timeUnit = TimeUnit.SECONDS) |
40 | 55 | public class Apache5Benchmark {
|
41 | 56 | private static final Logger logger = Logger.getLogger(Apache5Benchmark.class.getName());
|
42 | 57 |
|
43 |
| - @Param({"50"}) |
| 58 | + @Param({"50","200"}) |
44 | 59 | private int maxConnections;
|
45 | 60 |
|
46 | 61 | @Param({"10"})
|
|
0 commit comments