No description
  • C# 58%
  • C++ 39.5%
  • Starlark 2.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-01-30 11:46:49 -08:00
ReadSpeedTest C# ReadSpeedTest 2021-01-05 16:53:56 -08:00
ReadSpeedTestNative More detailed printout 2021-01-05 17:35:21 -08:00
.gitignore Read speed test bazel c++ 2021-01-05 17:13:41 -08:00
README mention dd 2021-01-05 17:40:12 -08:00
ReadSpeedTest.sln Remove old project from sln 2021-01-30 11:46:49 -08:00

This project contains two read speed tests. One written in C#, one written in C++ (well... C mostly).

The C++ one is significantly faster.

Note that very little sanity check is done, DO NOT USE WITH UNTRUSTED INPUTS.

# Launch C++

```
cd ReadSpeedTestNative
bazel build -c opt :read-speed-test
Get-ChildItem C:\tmp\*.[a-z][a-z][a-z]  |% { .\bazel-out\x64_windows-opt\bin\read-speed-test.exe $_.FullName }
```

# DD?

This is supposed to output format similar to dd.

In fact, if WSL (windows subsystem for linux) offered better performance, I would use DD. However, I couldn't get past 80MB/s in WSL on my network interface.

dd counterpart:

```
dd if=filename of=/dev/null
```

optionally with (bs=81920).