File Seek Time by Nulano

What is this?

This is a tool I quickly (in about 3 hours) whipped up that tests how long your HDD/SSD/whatever takes to Open, Read and Close a file.

I made it partly to help Znernicus diagnose his lag problems and partly because I was curious how hard it would be to make something like this.

What do I need?

Essentially any version of Java (works with Java 6 and newer)

How do I use it?

You can select a file to run the test on with the "Select File" button in the top left. By default it selects the pak01_dir.vpk file in the default Portal 2 install directory.

After you press the "Run Test" button in the top right, you should quickly see the results appear in the text area under the buttons.

If you selected a file that is used often, you really shouldn't see any times greater than 2ms (the ideal is under 0.5ms). If you selected a file, that hasn't been used in a long time, you might see a really long Open time on the first attempt (sometimes even 50ms), but all other times should be relatively low (less than 2ms).

If the minimum read time is more than 50ms, you should probably replace your drive soon.

Download

DescriptionFileSizeLast modifiedmd5
Jarfileseektime.jar665429 January 2017 11:12:03
source codeFileSeekTime.java690429 January 2017 11:11:17

License

You can do anything with this little tool, but I will appreciate you mentioning my name.

My results

SSD, pak01_dir.vpk

Reading 10kB from file 'C:\Program Files (x86)\Steam\SteamApps\common\Portal 2\portal2\pak01_dir.vpk' 5 times

Attempt 1:
Open: 0.142508 ms
Read 10240 bytes in 0.680672 ms
Close file in 0.01864 ms

Attempt 2:
Open: 0.104025 ms
Read 10240 bytes in 0.006915 ms
Close file in 0.014431 ms

Attempt 3:
Open: 0.081476 ms
Read 10240 bytes in 0.00932 ms
Close file in 0.01834 ms

Attempt 4:
Open: 0.095005 ms
Read 10240 bytes in 0.006313 ms
Close file in 0.013529 ms

Attempt 5:
Open: 0.07877 ms
Read 10240 bytes in 0.005713 ms
Close file in 0.011725 ms

Done!
Lowest open time: 0.07877 ms
Lowest read time: 0.005713 ms
Lowest close time: 0.011725 ms
Average open time: 0.1003568 ms
Average read time: 0.1417866 ms
Average close time: 0.015333 ms
Maximum open time: 0.142508 ms
Maximum read time: 0.680672 ms
Maximum close time: 0.01864 ms
      

SSD, unused file

Reading 10kB from file 'C:\Program Files (x86)\Steam\SteamApps\common\Portal 2\portal2\a30_19.dem' 5 times

Attempt 1:
Open: 1.472585 ms
Read 10240 bytes in 2.392275 ms
Close file in 0.018941 ms

Attempt 2:
Open: 0.14371 ms
Read 10240 bytes in 0.00962 ms
Close file in 0.017438 ms

Attempt 3:
Open: 0.089293 ms
Read 10240 bytes in 0.007517 ms
Close file in 0.012928 ms

Attempt 4:
Open: 0.079372 ms
Read 10240 bytes in 0.006314 ms
Close file in 0.011124 ms

Attempt 5:
Open: 0.07396 ms
Read 10240 bytes in 0.006013 ms
Close file in 0.010824 ms

Done!
Lowest open time: 0.07396 ms
Lowest read time: 0.006013 ms
Lowest close time: 0.010824 ms
Average open time: 0.371784 ms
Average read time: 0.4843478 ms
Average close time: 0.014251 ms
Maximum open time: 1.472585 ms
Maximum read time: 2.392275 ms
Maximum close time: 0.018941 ms
      

HDD, often used file (the tool I used to make this app)

Reading 10kB from file 'F:\IDE\IntelliJ IDEA 2016.3\bin\idea64.exe' 5 times

Attempt 1:
Open: 0.20324 ms
Read 10240 bytes in 0.019241 ms
Close file in 0.015032 ms

Attempt 2:
Open: 0.163253 ms
Read 10240 bytes in 0.017438 ms
Close file in 0.018941 ms

Attempt 3:
Open: 0.096509 ms
Read 10240 bytes in 0.022549 ms
Close file in 0.034274 ms

Attempt 4:
Open: 0.0923 ms
Read 10240 bytes in 0.009019 ms
Close file in 0.012627 ms

Attempt 5:
Open: 0.075464 ms
Read 10240 bytes in 0.008418 ms
Close file in 0.011424 ms

Done!
Lowest open time: 0.075464 ms
Lowest read time: 0.008418 ms
Lowest close time: 0.011424 ms
Average open time: 0.12615320000000002 ms
Average read time: 0.015333 ms
Average close time: 0.0184596 ms
Maximum open time: 0.20324 ms
Maximum read time: 0.022549 ms
Maximum close time: 0.034274 ms
      

HDD, unused file

Reading 10kB from file 'F:\IDE\Eclipse_Kepler\eclipse.exe' 5 times

Attempt 1:
Open: 15.115196 ms
Read 10240 bytes in 0.500282 ms
Close file in 0.015633 ms

Attempt 2:
Open: 0.116051 ms
Read 10240 bytes in 0.008118 ms
Close file in 0.015333 ms

Attempt 3:
Open: 0.076666 ms
Read 10240 bytes in 0.005713 ms
Close file in 0.011725 ms

Attempt 4:
Open: 0.06945 ms
Read 10240 bytes in 0.006013 ms
Close file in 0.010523 ms

Attempt 5:
Open: 0.067947 ms
Read 10240 bytes in 0.005412 ms
Close file in 0.010222 ms

Done!
Lowest open time: 0.067947 ms
Lowest read time: 0.005412 ms
Lowest close time: 0.010222 ms
Average open time: 3.0890619999999998 ms
Average read time: 0.1051076 ms
Average close time: 0.012687200000000001 ms
Maximum open time: 15.115196 ms
Maximum read time: 0.500282 ms
Maximum close time: 0.015633 ms
      

Other files may be added in the future