Home >Backend Development >PHP Tutorial >Example of using php to test hard disk writing speed_PHP tutorial
$endtime = time();
$usetime = $endtime - $starttime;
$write_xiaolv = $bytes/$usetime;
$myga_xiaolv = $mygabyte/$usetime;
echo "create 1GB file use time ".$usetime." secondsn";
echo "speed :".$write_xiaolv." byte/sn";
echo "speed :".$myga_xiaolv." m/sn";