The most common way is to get a usb/firewire hard drive or memory card and use a hard drive benmark on the drive. I don't think it is possible to measure for example a cameras transfer rate without using the actually program running, or the driver interface allowing you to do it which would actually slow it down. I could be wrong, I never actually coded anything using the usb/firewire on the mac.