<?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>'; ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.svn | Folder | 0755 |
|
|
html | Folder | 0755 |
|
|
reader | Folder | 0755 |
|
|
all_test.php | File | 745 B | 0755 |
|
callback_testcase.php | File | 1.8 KB | 0755 |
|
dom_testcase.php | File | 11.4 KB | 0755 |
|
element_testcase.php | File | 8.21 KB | 0755 |
|
invalid_testcase.php | File | 18.25 KB | 0755 |
|
jquery-1.2.3.pack.js | File | 29.15 KB | 0755 |
|
mass_test.php | File | 2.98 KB | 0755 |
|
memory_test.php | File | 4.61 KB | 0755 |
|
misc_testcase.php | File | 1.81 KB | 0755 |
|
performance_test.php | File | 792 B | 0755 |
|
selector_testcase.php | File | 21.33 KB | 0755 |
|
slick_test.php | File | 892 B | 0755 |
|
slickspeed.htm | File | 113.89 KB | 0755 |
|
std_testcase.php | File | 6.67 KB | 0755 |
|
strip_testcase.php | File | 4.34 KB | 0755 |
|