PHP Benchmark IP2Location IP DB Request Per Seconds
On this benchmark, IP2Location clearly win in Requests Per Second, Maxmind got speed 1883 Requests Per Second and IP2Location got 46.120 Requests Per Second.
IP2Location City IP DB was 2.449% faster than Maxmind City IP DB.
IP2Location can use MEMORY_CACHE for City DB IP File.
PHP Benchmark IP2Location Lite City IP DB using File IO (Disk)
Let’s see if IP2Location City IP DB File on Disk (SSD).
PHP Benchmark IP2Location IP DB Request Per Seconds Using File IO
When we use Hardisk File IO for IP2Location City IP DB speed decreased about 300% compared to Memory Cache IP2Location IP DB, we got 16.747 Requests Per Second.
It’s 889% faster than Maxmind City IP DB.
Bonus: Cache Result IP using APCU to Speed Up more than 1400%
The key of PHP Performance is Cache It, even we use for 1 or 2 seconds.
Because we will use APCU cache, we need single IP address, first we need to clear CPU cache.
When APCU Cahe is empty, we need to execute on IP2Location IP DB for first time, second request will be handled by APCU Memory.
Now SSL is one of SEO (Search Engine Optimization) signal. Read it on Google Webmaster Blog. If you only has one or two websites, there is not a big problem.…
On CentOS 7, to sync date time we often use NTPD. But on CentOS 9, there is no NTPD from CentOS. chrony and ntpd are two different implementations of the…
If you found error thread.error: can’t start new thread on yum update command on CentOS 6, CentOS 7 or CentOS 9, this usually happens with VPS, usually because the server…
3 thoughts on “PHP Benchmark Maxmind Geolite2 vs IP2Location”
Hm.
So what you’re basically doing is download the database for each of the services, and then, using the provided PHP SDK for each of them, try to run a benchmark of sheer speed in running whatever complex code each has provided.
Since we cannot compare the actual SDK code directly (you’ve not posted it here), we can only assume, from the benchmark, that MaxMind has not so talented PHP programmers than IP2Location. That doesn’t say much: after all, you can simply extract the content database fields in each case, import them all into a super-fast KV datastore, and just do lookups over it. Since, in theory, both databases have the same data (IP -> (Country; City)), the results would be exactly the same.
So it’s ‘wrong’ to claim that IP2Location is ‘slower’ than MaxMind; that’s just the case if you’re comparing each of their SDKs. Try using MaxMind’s data with the IP2Location SDK (by converting the format), and there should be no difference whatsoever.
No, the real difference will be in the accuracy of the data (and how can you measure that?), as well as in the amount of data provided for free by each company. Imagine that IP2Location has 1000 times more information on their free database than MaxMind’s. Sure, their SDK may be terrible; but it would potentially be far more accurate! That would be a good tradeoff for some uses…
Sorry, but I’m not convinced that you’re measuring anything worthwhile — except judging how well the programmers of each company are familiar with PHP and how good their code is. That’s pretty much irrelevant for the end-user who wants to use their free data and incorporate it in their own system…
Amazing! IP2Location is 24x faster than Maxmind.
Hm.
So what you’re basically doing is download the database for each of the services, and then, using the provided PHP SDK for each of them, try to run a benchmark of sheer speed in running whatever complex code each has provided.
Since we cannot compare the actual SDK code directly (you’ve not posted it here), we can only assume, from the benchmark, that MaxMind has not so talented PHP programmers than IP2Location. That doesn’t say much: after all, you can simply extract the content database fields in each case, import them all into a super-fast KV datastore, and just do lookups over it. Since, in theory, both databases have the same data (IP -> (Country; City)), the results would be exactly the same.
So it’s ‘wrong’ to claim that IP2Location is ‘slower’ than MaxMind; that’s just the case if you’re comparing each of their SDKs. Try using MaxMind’s data with the IP2Location SDK (by converting the format), and there should be no difference whatsoever.
No, the real difference will be in the accuracy of the data (and how can you measure that?), as well as in the amount of data provided for free by each company. Imagine that IP2Location has 1000 times more information on their free database than MaxMind’s. Sure, their SDK may be terrible; but it would potentially be far more accurate! That would be a good tradeoff for some uses…
Sorry, but I’m not convinced that you’re measuring anything worthwhile — except judging how well the programmers of each company are familiar with PHP and how good their code is. That’s pretty much irrelevant for the end-user who wants to use their free data and incorporate it in their own system…
Thank you. Based on test above, very clear that IP2Location Faster than Maxmind.
IP2Location City IP DB was 2449% faster than Maxmind City IP DB on MEMORY_CACHE.
IP2Location 889% faster than Maxmind City IP DB on File IO.
There is no argument “So it’s ‘wrong’ to claim that IP2Location is ‘slower’ than MaxMind;”.
So I’m confused by your comment.
Please note that we does not compare the accuracy, but only speed on same free database.