FileStream.ReadAsync very slow compared to Read()
问题 I have the following code to loop thru a file and read 1024 bytes at a time. The first iteration uses FileStream.Read() and the second iteration uses FileStream.ReadAsync() . private async void Button_Click(object sender, RoutedEventArgs e) { await Task.Run(() => Test()).ConfigureAwait(false); } private async Task Test() { Stopwatch sw = new Stopwatch(); sw.Start(); int readSize; int blockSize = 1024; byte[] data = new byte[blockSize]; string theFile = @"C:\test.mp4"; long totalRead = 0;