- Common API
- Updating Device Data
- Useful Links
- Supported Versions
This page provides guidance figures for detection speeds, memory usage and startup times for Pattern and Trie algorithms. Pattern is more memory efficient and can be run directly from disk while Trie requires considerably more main memory but delivers millions of detections per second. For more information check out the how device detection works page.
Results stated are detections per core on a quad core i7 2.2GHz CPU.
Below is a table of performance metrics relating to the PHP Pattern API; showing the detection speed for a single request for each data file type and where applicable also the mode of operation used. This can help to determine the best approach for your needs.
|Detections Per Second||
|Milliseconds Per Detection||0.0468||0.0515||
|Startup Time (ms)||39.478||72.956||93.187|
Hash Trie Benchmarks
Below is a table of performance metrics relating to the PHP Hash Trie API. It shows the detection speed for a single request for each data set and where applicable also the mode of operation used.
|Detections Per Second||757,792||771,176|
|Time Per Detection (ms)||0.001319||0.001297|
|Startup Time (ms)||63||79|
|Average Memory Usage (Mb)||116||142|