时间:2021-07-01 10:21:17 帮助过:12人阅读
$endtime = time();
$usetime = $endtime - $starttime;
$write_xiaolv = $bytes/$usetime;
$myga_xiaolv = $mygabyte/$usetime;
echo "create 1GB file use time ".$usetime." seconds\n";
echo "speed :".$write_xiaolv." byte/s\n";
echo "speed :".$myga_xiaolv." m/s\n";
http://www.bkjia.com/PHPjc/728111.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/728111.htmlTechArticle 代码如下:?php set_time_limit(0); $str = str_pad($str, 512, "0"); $file = fopen("./temp","a+"); $i = 0; $bytes = 1000000000; $mygabyte = $bytes/1000000; echo "test...