c# では、ダウンロード速度を確認するために webclient を使用してファイルを文字列としてダウンロードしますが、javascript または PHP でこれを行うにはどうすればよいですか? これが私のc#サンプルです。
Uri URL = new Uri("https://www.example.com/File512kb");
WebClient wc = new WebClient();
double starttime = Environment.TickCount;
string file = wc.DownloadString(URL); //download this file as string so I won't need to save it to local disk.
stopWatch.Elapsed.Milliseconds;
double endtime = Environment.TickCount;
double milisecs = endtime - starttime;
ありがとう...