0 AND empty($ttimes)) { echo 'error'; die; } $itimes = explode('_', $ttimes); if(count($itimes)<$test) { echo 'error 2'; die; } } $itimes[$test] = number_format($total_time,0); $test_results = ''; $ttimes2 = ''; $TimesSum=0; for($i = 0; $i <= $test; $i++) { $itimes[$i] = (int)$itimes[$i]; $TimesSum += $itimes[$i]; $j=$i+1; $test_results .= 'Kiểm tra lần ' . $j . ' kết thúc sau: ' . $itimes[$i] . ' ms.
'; $ttimes2 .= $itimes[$i]; if($i < $test) $ttimes2 .= '_'; } $test2 = $test+1; $tquery = 'test=' . $test2 . '&ttimes=' . $ttimes2; $tquery2 = $tquery . '&stop=1;'; $AverageAll = round($TimesSum/$test2); $iterations2 = $iterations-1; sort($itimes); $lowest = $itimes[0]; $highest = $itimes[$test]; if(isset($_GET['stop'])) $stop = $_GET['stop']; if(isset($stop)) $test = $iterations; ?> '; ?> PHP Benchmark Performance| Benchmark My Site | Đo tốc độ website

PHP Benchmark Performance | Benchmark My Site

Nhanh nhất: $lowest ms , chậm nhất : $highest ms
\n"; echo "Trung bình của $j lần thử: $AverageAll ms
\n"; if($test2>2) { $j-=2; $AverageMid = round(($TimesSum-$lowest-$highest)/$j); echo "Trunh bình của $j lần thử: $AverageMid ms
\n"; } echo '
Làm lại'; if($test<$iterations2) echo ' | Dừng | Đang thực hiện ' . $iterations . ' lần kiểm tra. Tự động Refesh sau 05 giây...
'; ?>

Copyright © 2009 , Hostindex.vn

Bạn muốn thử kiểm tra tốc độ server mình?

Hãy tải mã nguồn dưới đây về, upload lên host của bạn và chạy. Hệ thống sẽ tính toán và đưa cho bạn kết quả ngay lập tức.

Download: PHP Benchmark Performance. Dung lượng: 2,05 Kb

[Hosted by NSViet Co., Ltd] - [Đăng ký tên miền] - [Thuê máy chủ] - [Thuê hosting] - [Thuê chỗ đặt máy chủ]

cPanel.vn - Trường THPT Đào Duy Từ