|
| 1 | +/* |
| 2 | + * Copyright 2010-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"). |
| 5 | + * You may not use this file except in compliance with the License. |
| 6 | + * A copy of the License is located at |
| 7 | + * |
| 8 | + * http://aws.amazon.com/apache2.0 |
| 9 | + * |
| 10 | + * or in the "license" file accompanying this file. This file is distributed |
| 11 | + * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
| 12 | + * express or implied. See the License for the specific language governing |
| 13 | + * permissions and limitations under the License. |
| 14 | + */ |
| 15 | + |
1 | 16 | package software.amazon.awssdk.benchmark.apicall.httpclient.async;
|
2 | 17 |
|
| 18 | +import static software.amazon.awssdk.benchmark.utils.BenchmarkConstant.CONCURRENT_CALLS; |
| 19 | +import static software.amazon.awssdk.benchmark.utils.BenchmarkUtils.awaitCountdownLatchUninterruptibly; |
| 20 | +import static software.amazon.awssdk.benchmark.utils.BenchmarkUtils.countDownUponCompletion; |
| 21 | + |
| 22 | +import java.util.Collection; |
| 23 | +import java.util.concurrent.CountDownLatch; |
| 24 | +import java.util.concurrent.TimeUnit; |
3 | 25 | import org.openjdk.jmh.annotations.Benchmark;
|
4 | 26 | import org.openjdk.jmh.annotations.BenchmarkMode;
|
5 | 27 | import org.openjdk.jmh.annotations.Fork;
|
|
28 | 50 | import software.amazon.awssdk.http.crt.AwsCrtAsyncHttpClient;
|
29 | 51 | import software.amazon.awssdk.services.protocolrestjson.ProtocolRestJsonAsyncClient;
|
30 | 52 |
|
31 |
| -import java.util.Collection; |
32 |
| -import java.util.concurrent.CountDownLatch; |
33 |
| -import java.util.concurrent.TimeUnit; |
34 |
| - |
35 |
| -import static software.amazon.awssdk.benchmark.utils.BenchmarkConstant.CONCURRENT_CALLS; |
36 |
| -import static software.amazon.awssdk.benchmark.utils.BenchmarkUtils.awaitCountdownLatchUninterruptibly; |
37 |
| -import static software.amazon.awssdk.benchmark.utils.BenchmarkUtils.countDownUponCompletion; |
38 |
| - |
39 | 53 | /**
|
40 | 54 | * Using aws-crt-client to test against local mock https server.
|
41 | 55 | */
|
|
0 commit comments