Is there any cocoa API or open source library that enable me to check the disk read/write speed in OS X?
Something like what this app (in Mac App Store) uses.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As best I can tell, that app writes and reads a known amount of data (the user selects from 1, 2, 3, 4, and 5 GB) and times how long it takes.
I imagine that the ‘live’ read/write times are based on a running average: “in the last 5 seconds I’ve written XXX MB”.
I’m not aware of an API to implement something like this yourself, but you could do it fairly easily: generate a known amount of garbage (e.g. 500MB of random numbers), write it to a temporary folder, time it, do your calculations, then clean up the written data.