\r\n

51Degrees Device Detection Java  4.4

Device detection services for 51Degrees Pipeline
  • fiftyone
  • devicedetection
  • examples
  • hash
  • Benchmark

fiftyone.devicedetection.examples.hash.Benchmark Class Reference

Inheritance diagram for fiftyone.devicedetection.examples.hash.Benchmark:

[legend]

Collaboration diagram for fiftyone.devicedetection.examples.hash.Benchmark:

[legend]

Classes

class  Example

Static Public Member Functions

static void  main (String[] args) throws Exception
Instantiates this class and starts runBenchmarks(String, String, int) with parameters from the command line. More...

Static Protected Member Functions

static void  runBenchmarks (String deviceDataFile, String userAgentFile, int numberOfThreads) throws Exception
Runs three different benchmarks for popular configurations. More...

Static Protected Member Functions inherited from fiftyone.devicedetection.examples.ProgramBase

static File  getDefaultFilePath (String searchPattern)
static File  getDefaultFilePath (FilenameFilter searchFilter)

Member Function Documentation

◆ 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 protected

Runs 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