We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

CD-Rom Benchmarking

andypat
andypat asked
on
Medium Priority
199 Views
Last Modified: 2010-04-01
Could someone please tell me how to benchmark CDRom drives or possibly send me a snippet of example code? I'm trying to determine the speed of a drive, eg. 2x, 4x, 8x etc.
Comment
Watch Question

Author

Commented:
I'd really appreciate an email from anyone who can help,
arpatterson@hotmail.com
andypat@lineone.net
Well, I have a suggestion.  It might not be what you're looking for, but try this:

Get the current time, somehow, just make sure that it has precision into the milliseconds.

Open a file known to exist on the cd-rom.  Perhaps copy it to the hard drive in a temporary directory.

Get the current time again.  Subtract this time from the original, then you'll have the amount of time that it took to complete the copy.

I'm not sure how to actually implement any of that in c/c++ at this time, but if you do, that should provide the basic framework you need.

Commented:
Andy, what exactly are you trying to do?

http://web.idirect.com/~frank

Author

Commented:
Edited text of question
Oh, that sheds a whole new light on things.  Sorry, I can't help it all for that one.

Commented:
NT, 95 or both?

Commented:
Suggestion:
1. Get timestamp.
2. Read n outermost tracks of the CD.
3. Get timestamp.
4. Read m innermost tracks of the CD.
5. Get timestamp.

Now you have two differences which let you approximate (because of various overheads) the max and min transfer rate of the CD.

Tell me the OS and I may have more info.
How do you read one track at a time though?

Commented:
Depends on the OS.
On NT, you can use CreateFile() and DeviceIoControl() to access the CDROM directly.  See MS KB article Q138434.
On DOS, you can use the MSCDEX driver.
On Win95, this is a pain.  See MS KB article Q137813.

Author

Commented:
I'm trying to do this on NT, 95 & 98.
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Commented:
http://www.dejanews.com/getdoc.xp?AN=351196078 But I'm not sure it will work with a CD.

Commented:
Any specific reason for the low grade?

Author

Commented:
Sorry alexo, I'd had a bad day! I really appreciate your feedback. Thanks again!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.