MonkeyTest -- a disk benchmark to test your hard drive read-write speed in Python.
(see my own notes at bottom)
A simplistic script to show that such system programming tasks are possible and convenient to be solved in Python.
I haven't done any command-line arguments parsing, so you should configure it using the constants at top of the script.
The file is being created, then written with random data, randomly read and deleted, so the script doesn't waste your drive
(!) Be sure, that the file you point to is not something you need, cause it'll be overwritten during test
Runs on both Python3 and 2, despite that I prefer 3.
Has been tested on 3.5 and 2.7 under ArchLinux
If You want to contribute, be sure to see our TODO list first
- Works great in Windows (as long as Python is installed), but unless you run it from the command-prompt, it will immediately exit before you can read the results! Solved by adding a line at the end ofthe file, which waits for you to press any key:
- Edit line 25 as needed. I actually commented it out to leave as a reference for Linux systems, then added a new line for Windows:
'# FILE = r'/home/thd/test' # file must be at drive under test'
'FILE = r'C:\temp\test.txt' # file must be at drive under test'
- Python can be downloaded from here.