set_time_limit(0);
$str = str_pad($str, 512, "0");
$file = fopen(" ./temp","a+");
$i = 0;
$bytes = 1000000000;
$mygabyte = $bytes/1000000;
echo "テスト開始を待っています...";
$starttime = time() ;
while($i $i += fwrite($file, $str);
}
$endtime = time();
$usetime = $endtime - $starttime;
$write_xiaolv = $bytes/$usetime;
$myga_xiaolv = $mygabyte/$usetime;
echo "1GBのファイル使用時間を作成".$usetime ." 秒n";
echo "速度:".$write_xiaolv." バイト/sn";
エコー "速度:".$myga_xiaolv." m/sn";