iopreference.blogg.se

Maxmind ip database
Maxmind ip database








  1. #Maxmind ip database for free#
  2. #Maxmind ip database code#
  3. #Maxmind ip database download#
  4. #Maxmind ip database free#

  • LiteSpeed Web Server LiteSpeed Web Server.
  • #Maxmind ip database code#

    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. Sure, their SDK may be terrible but it would potentially be far more accurate! That would be a good tradeoff for some uses…

    #Maxmind ip database free#

    Imagine that IP2Location has 1000 times more information on their free database than MaxMind’s.

    #Maxmind ip database for free#

    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. Try using MaxMind’s data with the IP2Location SDK (by converting the format), and there should be no difference whatsoever. 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. Since, in theory, both databases have the same data (IP -> (Country City)), the results would be exactly the same. 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 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.

    #Maxmind ip database download#

    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. The result is php ip2location_benchmark.phpĪPCU Memory Requests per second: 718648.20316703 $t = unserialize(apcu_fetch($cache_key)) Įcho 'APCU Memory Requests per second: '. When APCU Cahe is empty, we need to execute on IP2Location IP DB for first time, second request will be handled by APCU Memory.īelow is code for benchmark: lookup($ip, \IP2Location\Database::ALL) Īpcu_store($cache_key, serialize($t), 300) IP2Location Requests per second: 16747.449752708īecause we will use APCU cache, we need single IP address, first we need to clear CPU cache. The result if we use IP2Location IP DB File IO is: php ip2location_benchmark.php lookup($ip, \IP2Location\Database::ALL) Įcho 'IP2Location Requests per second: '. Let’s see if IP2Location City IP DB File on Disk (SSD). PHP Benchmark IP2Location Lite City IP DB using File IO (Disk) IP2Location can use MEMORY_CACHE for City DB IP File. IP2Location City IP DB was 2.449% faster than Maxmind City IP DB. 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. PHP Benchmark IP2Location IP DB Request Per Seconds PHP Code is for testing IP2Location City IP DB: PHP Code is for testing Maxmind City IP DB: get($ip) Įcho 'Maxmind Requests per second: '. On this benchmark, we use GeoLite2 Free from Maxmind.Īnd for IP2Location Lite IP DB we can download on

    maxmind ip database

  • PHP: 7.4 with Zend-Opcache (and APCU for testing cached IP address).
  • maxmind ip database

  • CPU: Intel(R) Xeon(R) CPU E5-1650 v3 3.50GHz 6 Cores 12 Threads.
  • The benchmark use server with specification: When we want to detect visitor city or country by IP, we can use free version of Maxmind Geolite2 IP DB and IP2Location Lite. This article is about simple benchmark Maxmind Geolite2 IP DB vs IP2Location IP DB.










    Maxmind ip database