NexusLeads Webshell
NexusLeads


Server : LiteSpeed
System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64
User : alsaif ( 1057)
PHP Version : 7.4.33
Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/alsaif/public_html/plugins/system/tgeoip/vendor/geoip2/geoip2/examples/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/alsaif/public_html/plugins/system/tgeoip/vendor/geoip2/geoip2/examples/benchmark.php
<?php

namespace Tassos\Vendor;

require __DIR__ . '/../vendor/autoload.php';
use Tassos\Vendor\GeoIp2\Database\Reader;
\srand(0);
$reader = new Reader('GeoIP2-City.mmdb');
$count = 500000;
$startTime = \microtime(\true);
for ($i = 0; $i < $count; ++$i) {
    $ip = \long2ip(\rand(0, 2 ** 32 - 1));
    try {
        $t = $reader->city($ip);
    } catch (\Tassos\Vendor\GeoIp2\Exception\AddressNotFoundException $e) {
    }
    if ($i % 10000 === 0) {
        echo $i . ' ' . $ip . "\n";
    }
}
$endTime = \microtime(\true);
$duration = $endTime - $startTime;
echo 'Requests per second: ' . $count / $duration . "\n";

NexusLeads