dumb mistake by me

This commit is contained in:
Ben 2024-04-23 13:16:11 +02:00
parent 58f7f9384a
commit 6545f3469f
No known key found for this signature in database
GPG Key ID: 541B9D8C9F1426A1
1 changed files with 4 additions and 4 deletions

View File

@ -21,15 +21,15 @@ namespace CodexTests.ScalabilityTests
var filename = nameof(DiscSpeedTest);
Thread.Sleep(1000);
Thread.Sleep(2000);
if (File.Exists(filename)) File.Delete(filename);
Thread.Sleep(1000);
Thread.Sleep(2000);
var writeSpeed = PerformWrite(targetSize, bufferSizeBytes, filename);
Thread.Sleep(1000);
Thread.Sleep(2000);
var readSpeed = PerformRead(targetSize, bufferSizeBytes, filename);
Log($"Write speed: {writeSpeed} per second.");
Log($"Read speed: {writeSpeed} per second.");
Log($"Read speed: {readSpeed} per second.");
}
private ByteSize PerformWrite(long targetSize, long bufferSizeBytes, string filename)