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/public_html/_scripts/html_parser/testcase/reader/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mitzvahm/public_html/_scripts/html_parser/testcase/reader//performance_test.php
<?php
// $Rev: 130 $
// -----------------------------------------------------------------------------
error_reporting(E_ALL);

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

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

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

for ($i=0; $i<$count; ++$i) {
    $start = microtime();
    $dom->load($str, false);
    list($eu, $es) = explode(' ', microtime());
    list($bu, $bs) = explode(' ', $start);

    if (((float)$eu+(float)$es-(float)$bu-(float)$bs)*1000 > $max)
        $max = ((float)$eu+(float)$es-(float)$bu-(float)$bs)*1000;

    if (((float)$eu+(float)$es-(float)$bu-(float)$bs)*1000 < $min)
        $min = ((float)$eu+(float)$es-(float)$bu-(float)$bs)*1000;
    
    $all += ((float)$eu+(float)$es-(float)$bu-(float)$bs)*1000;
    echo sprintf('(%.1f)', ((float)$eu+(float)$es-(float)$bu-(float)$bs)*1000).'<br>';
    $dom->clear();
}

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

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

Youez - 2016 - github.com/yon3zu
LinuXploit