public class Benchmark extends ProgramBase
| Constructor and Description |
|---|
Benchmark() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
Instantiates this class and starts
runBenchmarks(String, String, int) with parameters from the
command line. |
protected static void |
runBenchmarks(java.lang.String deviceDataFile,
java.lang.String userAgentFile,
int numberOfThreads)
Runs three different benchmarks for popular configurations.
|
getDefaultFilePath, getDefaultFilePathprotected static void runBenchmarks(java.lang.String deviceDataFile,
java.lang.String userAgentFile,
int numberOfThreads)
throws java.lang.Exception
deviceDataFile - path to the 51Degrees device data file for testinguserAgentFile - path to a text file of User-AgentsnumberOfThreads - number of concurrent threadsjava.lang.Exception - as a catch allpublic static void main(java.lang.String[] args)
throws java.lang.Exception
runBenchmarks(String, String, int) with parameters from the
command line.args - command line arguments.java.io.IOException - if the data file cannot be accessed.java.lang.InterruptedException - if the benchmark threads are interrupted.java.lang.ExceptionCopyright © 2022. All rights reserved.