The January club meeting (originally cancelled) will be held at Dot's house at 6pm, January 8. If you need directions, check the "Meeting Notes" forum.

A Simple Speed Test for Hard Drives

User avatar
TomTom
Site Admin
Posts: 384
Joined: Thu Feb 19, 2015 11:18 pm
Contact:

A Simple Speed Test for Hard Drives

Postby TomTom » Fri Jan 20, 2017 8:04 pm

MonkeyTest
https://github.com/thodnev/MonkeyTest

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
https://github.com/thodnev/MonkeyTest/milestones

Image
MonkeyTest

My Notes:
  • 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:
    os.system("pause")
  • 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.

MonkeyTest-master.zip
(5.93 KiB) Downloaded 59 times
A mind needs books as a sword needs a whetstone, if it is to keep its edge.
- Tyrion Lannister

User avatar
TomTom
Site Admin
Posts: 384
Joined: Thu Feb 19, 2015 11:18 pm
Contact:

Re: A Simple Speed Test for Hard Drives

Postby TomTom » Fri Jan 20, 2017 8:53 pm

I like MonkeyTest,as it is small, fast, free and portable (if Python is installed). After all, it is just a text file!

If, however, you want more, Raymond.CC, as usual, offers great advice in his 10 Free Tools to Measure Hard Drive and SSD Performance article. Many can be used for just about everything from USB drives, to memory cards, RAMDisks, SSD drives and mechanical hard drives, and some are portable.

Of those, I like CrystalDiskMark, which is almost a standard tool for drive reviews, and does have a portable version.
A mind needs books as a sword needs a whetstone, if it is to keep its edge.
- Tyrion Lannister

User avatar
TomTom
Site Admin
Posts: 384
Joined: Thu Feb 19, 2015 11:18 pm
Contact:

Re: A Simple Speed Test for Hard Drives

Postby TomTom » Sat Jan 21, 2017 5:45 pm

Comparing MonkeyTest & CrystalDiskMark

Compare MonkeyTest & CrystalDiskMark.jpg
Compare MonkeyTest & CrystalDiskMark.jpg (105.05 KiB) Viewed 764 times
A mind needs books as a sword needs a whetstone, if it is to keep its edge.
- Tyrion Lannister


Return to “Computer Tips and Tweaks”

Who is online

Users browsing this forum: No registered users and 1 guest