◆ main()
static void fiftyone.devicedetection.examples.hash.Benchmark.main | ( | String [] | args | ) | throws Exception |
static
Instantiates this class and starts runBenchmarks(String, String, int) with parameters from the command line.
- Parameters
-
- args - command line arguments.
- Exceptions
-
- IOException - if the data file cannot be accessed.
- InterruptedException - if the benchmark threads are interrupted.
◆ runBenchmarks()
static void fiftyone.devicedetection.examples.hash.Benchmark.runBenchmarks ( String deviceDataFile, String userAgentFile, int numberOfThreads ) throws Exception static protectedRuns three different benchmarks for popular configurations.
- Parameters
-
- deviceDataFile - path to the 51Degrees device data file for testing
- userAgentFile - path to a text file of User-Agents
- numberOfThreads - number of concurrent threads
- Exceptions
-
- Exception - as a catch all