This project is a simple disk performance testing application written in C++20. It measures the read and write speeds of a specified disk by writing and reading a test file of a user-defined size.
- Prompt user for disk letter, data size, caching option, and iteration count.
- Validate the specified disk.
- Perform disk write and read tests.
- Display average write and read speeds.
- Windows operating system
- C++20 compatible compiler
- Visual Studio IDE (recommended)
- Open the project in Visual Studio.
- Build the project by selecting Build > Build Solution from the menu ot by pressing
Crtl+Shift+B
.
Enter the disk letter (e.g., C): D
Enter the size of data to write (in MB): 1024
Enable caching? (y/n): n
Enter the number of iterations: 6
Warm-up run 1
Writing 1024 MB to disk...
Time taken for write: 0.469393 seconds
Write speed: 2181.54 MB/s
Reading 1024 MB from disk...
Time taken for read: 0.334193 seconds
Read speed: 3064.1 MB/s
Test file deleted.
...
Final Results:
Average Write Speed: 2170.76 MB/s
Average Read Speed: 3104.65 MB/s
- main.cpp: Entry point of the application.
- Application.h: Header file for the Application class.
- Application.cpp: Implementation of the Application class and all of the testing functions.
This project is licensed under the MIT License. See the LICENSE.txt file for more details.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
For any issues, please open an issue on the GitHub repository. For questions please open an discussion.