-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
339578a
commit d387f5e
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2025 Viktor Popp Hansen | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Disk Utility | ||
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. | ||
|
||
## Features | ||
* 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. | ||
|
||
## Requirements | ||
* Windows operating system | ||
* C++20 compatible compiler | ||
* Visual Studio IDE (recommended) | ||
|
||
## Building the Project | ||
1. Open the project in Visual Studio. | ||
2. Build the project by selecting Build > Build Solution from the menu ot by pressing `Crtl+Shift+B`. | ||
|
||
## Example Usage | ||
``` | ||
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 | ||
``` | ||
|
||
## Architecture | ||
* [main.cpp](DiskUtilityCLI/main.cpp): Entry point of the application. | ||
* [Application.h](DiskUtilityCLI/Application.h): Header file for the Application class. | ||
* [Application.cpp](DiskUtilityCLI/Application.cpp): Implementation of the Application class and all of the testing functions. | ||
|
||
## License | ||
This project is licensed under the MIT License. See the [LICENSE.txt](LICENSE.ttx) file for more details. | ||
|
||
## Contributing | ||
Contributions are welcome! Please fork the repository and submit a pull request with your changes. | ||
|
||
## Contact | ||
For any issues, please open an issue on the GitHub repository. For questions please open an discussion. |