Detailed Description
The example illustrates the flexibility with which the 51Degrees pipeline can be configured to achieve a range of outcomes relating to speed, accuracy, predictive power, memory usage.
Please see performance options) and hash dataset options for more information about adjusting performance.
Collaboration diagram for fiftyone.devicedetection.examples.console.PerformanceBenchmark:
Classes | |
| class | BenchmarkResult |
| class | PerformanceConfiguration |
Static Public Member Functions | |
| static void | main (String[] args) throws Exception |
Static Public Attributes | |
| static final int | DEFAULT_NUMBER_OF_THREADS = 4 |
| static final int | TESTS_PER_THREAD = 10000 |
| static final Logger | logger = LoggerFactory.getLogger(PerformanceBenchmark.class) |
| static PerformanceConfiguration[] | DEFAULT_PERFORMANCE_CONFIGURATIONS |
Protected Member Functions | |
| void | runBenchmarks (PerformanceConfiguration[] performanceConfigurations, String dataFilename, String evidenceFilename, int numberOfThreads, PrintWriter writer) throws Exception |
| Runs benchmarks for various configurations. | |
Member Function Documentation
◆ runBenchmarks()
|
protected |
Runs benchmarks for various configurations.
- Parameters
-
dataFilename path to the 51Degrees device data file for testing evidenceFilename path to a text file of evidence numberOfThreads number of concurrent threads
- Exceptions
-
Exception as a catch all
- Examples
- PerformanceBenchmark.java.
Member Data Documentation
◆ DEFAULT_PERFORMANCE_CONFIGURATIONS
|
static |
Initial value:
= {
}
Definition PerformanceBenchmark.java:388
