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


51Degrees: More Than Three Times Faster!

Published on Monday, October 2, 2017

51Degrees: More Than Three Times Faster!

51Degrees compares performance of our enhanced algorithm on three different commodity hardware platforms.

51Degrees is regularly evaluated against competitors DeviceAtlas and WURFL from ScientiaMobile for performance, accuracy and memory consumption. Plenty of resources to help engineers evaluating device detection solutions are available on this web site including migration guides plus API benchmarks. This blog post builds on the previous performance blog from 2016 with the same commodity hardware; 1) a Raspberry Pi, 2) a low-end desktop PC and 3) a high-end multi CPU server, but using our enhanced algorithm.

Enhanced Algorithm

In September 2017 we announced the launch of our new enhanced device detection algorithm. Delivering performance improvements with faster detections per second and reduced memory requirements compared to other high-performance algorithms. The enhanced algorithm offers better than 99.9% matching accuracy, 114 MB fully initialised main memory requirement and a caching overhead as low as 1MB of memory. This amounts to a marked increase in performance, as detailed further in our press release. The enhancement is easy to deploy for developers as it uses the same interface as our existing APIs. If you would like to find out more, please Contact Us.

Performance Matters

Device detection only provides benefits if it's so fast there is no noticeable overhead. It needs to be accurate to correctly identify the device, browser and operating system. As such the number of device combinations (device, operating system and browser version pairings) is an important measure of how comprehensive a device detection solution is. However, the larger the number of device combinations the larger the data file and therefore the more data needs to be searched in a finite period of time. This can lead to large demands on computer hardware in computation and sufficient memory. This blog post examines the performance characteristics of 51Degrees' enhanced algorithm which overcomes these issues.

The Test

The performance test was carried out using 3 commodity hardware platforms, the same ones as before;

  1. A Raspberry Pi with a Quad Core 1.2GHz Broadcom BCM2837 CPU and 1GB RAM running Rasbian Jesse Lite.
  2. A low-end desktop PC with a 3Ghz Intel Core 2 Duo and 4GB of RAM running Ubuntu 16.04 LTS.
  3. A High end server with Dual 2.2Ghz Intel Xeon E5-2660 v2 10 Core CPUs and 160GB of RAM running Windows Server 2012.

The source data used on all three platforms is a random sample of 1 million User-Agents representative of real world data, a sample of 10 million User-Agents from the previous test was also used in benchmarking platform three, the high-performance server. In all cases, the source data was loaded into memory so as to negate any variables caused by disk caching.



Platform 1



Performance (detections per second)


Average time for a single detection per core (ms)


A Raspberry Pi model 3 - 1.2GHz 64-bit quad-core ARMv8 CPU and 1GB of RAM running Raspbian Jessie Lite. Price: $35

The Raspberry Pi was tested with 1 million User-Agents and the Enterprise data file. During the previous round of tests, we found an issue due to memory constraints where the Raspberry Pi's one gigabyte of RAM fell just short of the roughly 1.2 gigabytes needed to run the full tests using the Enterprise Data File and the old algorithm without the new enhancements. As the enhanced algorithm is very memory efficient, we had no trouble running the full test.

Platform 2



Performance (detections per second)


Average time for a single detection per core (ms)


A 3Ghz Intel Core 2 Duo with 4GB of RAM, running Ubuntu 16.04 LTS. Price: $200

At such a low cost, the results on platform 2 show that even with ageing hardware, you can still achieve above par device detection performance.

Platform 3


1 Million

10 Million

Performance (detections per second)



Average time for a single detection per core (ms)



Dual 2.2Ghz Intel Xeon E5-2660 v2 10 Core CPUs with 160GB of RAM, running Windows Server 2012. Price: $3000

As Platform 3 has a significantly large amount of memory, we also tested using the same sample of 10 million User-Agents from the previous round of performance tests in November 2016. The difference in performance between 1 and 10 million User-Agents is characterised by the sample data itself, shorter User-Agent strings can be faster to evaluate. A larger number of short User-Agents strings, usually those of bots and crawlers, could bring down the average time to evaluate the source data.


Detections per Second for each platform
Detections per Second for each platform


Detections Per Dollar

Detections Per Dollar Chart
Detections Per Dollar Chart


Again, despite the performance difference shown in the previous graph, the chart shows that the lowest cost device is the most efficient in terms of computing power.


In the previous round of tests, we noticed that the Raspberry Pi has issues with thermal throttling when running high intensity workloads. While we did find a cooling solution for the Pi, this setup is still unlikely to be used in a production environment.


Raspberry Pi cooling solution
Raspberry Pi cooling solution


Platform 2, a low-end desktop PC, has shown that even with ageing hardware (the cpu is 9 years old) you can still achieve decent results. Testing has shown that, compared to our previous run of tests in November, the enhancements have increased detections per seconds around 3 times on average. This means that the overhead of integrating 51Degrees device detection libraries into your application will be even lower than before.

Performance increase
Performance increase.


For businesses like Adtech companies processing 10s of billions of advertising events per day, this enhancement will translate into cost savings and increased profits through a large increase in capacity and efficiency improvements.

If you would like to find out more...

Contact Us

Comments (0)
Joseph Dix

Products Team

Other posts by Products Team
Contact author



.NET 2013 2014 4G 51Degrees 5G A.C.Roma A7 ABI Acer Affiliate Marketing Afilias Alcatel Amazon AMP Analysis Analytics Android Android 5.0 Lollipop Android Kitkat Android Lollipop Android Media Stick Apache API Apple Apple TV Archos Asha Asian Market ASP.NET Asus Australia Big Data Black Friday Blackberry Blink Browser C C# Case Study CeBIT CES Chrome Cloud CMS combinations Comparison Competition CoolPad COTW Cron CSS3 Data Data Blog Data File Data Model Daydream Denver Design Desire Eye Desktop Detection Developers Device Device Data Device Detection Device Intelligence Device Popularity Device property Device Types Device Use DeviceAtlas Display dmexco DoCoMo Doogee DotNetNuke Download Drupal Email EReader E-Reader Ericsson Evaluation Event Examples EXPLAY Rio Facebook feature Firefox Firefox OS Fly Foundation Framework France Galaxy S3 Galaxy S5 Galaxy Tab A Galaxy Tab A 8.0 Galaxy Tab A 9.7 Germany git repositories Global Google Google Daydream GSMA HAProxy Hardware Hisense HTC HTC ONE MAX HTC OS HTML5 HTTP HTTP Headers Huawei HUAWEI. UPDATE HUDL Huwaei IBC Icemobile Prime 4.0 IE IFA IIS Image Optimiser Image Optimizer India Infographic Ingeniux Internet usage iOS iOS 7 iOS 8 ipad iPhone iPhone 6 IsEmailBrowser IsWebApp Italy Japan Java Javascript Jolla Kentico Keynote Kindle Kindle Fire Kindle Fire HD Leagoo Lenovo LG Location Log File Analysis LTE Lumia m.dot macOS Map Memory Meta Data Mi 4S Micromax Microsoft Miia Style Mobile Mobile Analysis Mobile Analytics Mobile Devices Mobile Marketing Mixer Module Motorola MVC4 MWC MWC 2017 MWC16 MyPhone Native Native Apps NET New Release News News Letter Nexus Nexus 6 Nexus 9 NFC NGINX Nokia Nokia 3310 Non-Mobile NVIDIA Omate On7 OnePlus 5 Opera Opera Mini Operating System Optimisation OS OSX 10.10 OTA Panasonic Patent PC Pebble Performance phablet phone PHP Poland Presentation Press Release Price Band PRIV programmatic PS4 Publishers Python QMobile QR Codes Redirection Research Reseller Responsive Images Responsive web design RESS Review reviews RIM Ringmark RTB RWD Safari Samsung Scala ScientiaMobile Screen Screen resolution Screen Size SEO Server Server-side optimisation Set Box Set Top Box Sharepoint Shark 1 SHIFT phones Sitecore Sitecore version 9 SLUSH Smart TV Smartphone Smartphones Smartwatches Snapdragon Sony Sony Xperia Spain Swedish Beers Symbian Tablet Tablets Tesco Testing Tips Top 5 TOTW TV UDS UK Umbraco Update updates US User Agent UserAgent User-Agent Vendors Version 3 Video VoLTE VR Wearable Web Web Apps Web content management WebKit WebMatrix White Paper Widgets Widnows WiFi Wiko Wileyfox Windows Windows Phone WURFL Xbox XBox One Xiaomi Xperia Xperia z Yosemite Z10 ZenFon 2 ZOPO ZTE