Package org.apache.hc.core5.benchmark
Class HttpBenchmark
- java.lang.Object
-
- org.apache.hc.core5.benchmark.HttpBenchmark
-
public class HttpBenchmark extends java.lang.Object
Main program of the HTTP benchmark.- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description private BenchmarkConfig
config
-
Constructor Summary
Constructors Constructor Description HttpBenchmark(BenchmarkConfig config)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private Results
doExecute(HttpAsyncRequester requester, Stats stats)
Results
execute()
static void
main(java.lang.String[] args)
-
-
-
Field Detail
-
config
private final BenchmarkConfig config
-
-
Constructor Detail
-
HttpBenchmark
public HttpBenchmark(BenchmarkConfig config)
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
execute
public Results execute() throws java.lang.Exception
- Throws:
java.lang.Exception
-
doExecute
private Results doExecute(HttpAsyncRequester requester, Stats stats) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-