• About Us
  • Blog
  • Basket
  • Account
  • Sign In
  •  

PHP API

Benchmarks

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.

Pattern Benchmarks

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.


LitePremiumEnterprise
Detections Per Second21459
2941230488
Milliseconds Per Detection0.04680.051500328
Pattern detection performance for Lite, Premium and Enterprise data files.
LitePremiumEnterprise
Startup Time (ms)39.47872.95693.187
Pattern startup times for Lite, Premium and Enterprise data files.

Trie Benchmarks

Below is a table of performance metrics relating to the PHP Trie API. It shows the detection speed for a single request for each data set and where applicable also the mode of operation used.


LitePremiumEnterprise
Detections Per Second3076920
23529391538460
Time Per Detection (ms)0.0003250.0004250.00065
Trie detection performance for Lite, Premium and Enterprise data files.
LitePremiumEnterprise
Startup Time (ms)23.43
11578.11
9835.91
Trie startup times for Lite, Premium and Enterprise data files.