Package brave.httpclient
Class ApacheHttpClientBenchmarks
java.lang.Object
brave.http.HttpClientBenchmarks<org.apache.http.impl.client.CloseableHttpClient>
brave.httpclient.ApacheHttpClientBenchmarks
- Direct Known Subclasses:
ApacheHttpClientBenchmarks_jmhType_B1
public class ApacheHttpClientBenchmarks extends HttpClientBenchmarks<org.apache.http.impl.client.CloseableHttpClient>
Disabled as it crashes on socket problems
-
Constructor Summary
Constructors Constructor Description ApacheHttpClientBenchmarks()
-
Method Summary
Modifier and Type Method Description protected void
close(org.apache.http.impl.client.CloseableHttpClient client)
protected void
get(org.apache.http.impl.client.CloseableHttpClient client)
static void
main(String[] args)
protected org.apache.http.impl.client.CloseableHttpClient
newClient()
protected org.apache.http.impl.client.CloseableHttpClient
newClient(HttpTracing httpTracing)
Methods inherited from class brave.http.HttpClientBenchmarks
baseUrl, client_get, close, init, tracedClient_get, tracedClient_get_resumeTrace, unsampledClient_get
-
Constructor Details
-
ApacheHttpClientBenchmarks
public ApacheHttpClientBenchmarks()
-
-
Method Details
-
newClient
- Specified by:
newClient
in classHttpClientBenchmarks<org.apache.http.impl.client.CloseableHttpClient>
-
newClient
protected org.apache.http.impl.client.CloseableHttpClient newClient()- Specified by:
newClient
in classHttpClientBenchmarks<org.apache.http.impl.client.CloseableHttpClient>
-
get
- Specified by:
get
in classHttpClientBenchmarks<org.apache.http.impl.client.CloseableHttpClient>
- Throws:
Exception
-
close
- Specified by:
close
in classHttpClientBenchmarks<org.apache.http.impl.client.CloseableHttpClient>
- Throws:
IOException
-
main
- Throws:
org.openjdk.jmh.runner.RunnerException
-