On Apr 28, 2010, at 8:18 PM, iJohn wrote:

It's easy enough to get a ballpark guess figure these days with
Win 7 by just moving files and asking for "details". I don't know how
to guess at transfer speeds in OS X though ... except by copying a
file and measuring the time by watching the clock.


Your computer is VASTLY better at watching the clock. The built-in (at least in bash, if your shell is csh it's different) cammand 'time' will tell you how long any unix command or script takes to execute.

In our case I want to time copying a file from one place to another, from my hard drive to my thumb drive

time cp <filename on one drive> <filename on another drive>

You can move several known files, or use a file I made a long time ago for some network throughput testing I had to do:

<http://dbdev2.pharmacy.arizona.edu/miscjunk/test1mb.txt>

This is a 1024 KB random text file. Save it, you can concatenate however many copies that you want to make a sizeable file.

for example, I did:

Here's my script, saved as speed.sh: (This is quick&dirty with NO error correction whatsoever. I used the unix command cat to concatenate test1mb.txt a bunch of times to make a 50 mb file.) This presumes that test50mb.txt is in the current directory, and "Untitled 1" is the name that shows up on the desktop for the destination. Someone more ambitious than I could package this into a more usable program.

#!/bin/bash
time cp test50mb.txt /Volumes/Untitled\ 1/test50mb.txt

"Untitled 1" is how my Cruzer 2GB stick shows up on my system right now.

Don't forget to make it executable after writing it:

dbdev2:Desktop johnson$ chmod u+x speed.sh

Then I invoked it:

dbdev2:Desktop johnson$ ./speed.sh

real    0m6.729s
user    0m0.001s
sys     0m0.156s

Here we're only interested in the 'real' value. 50 mb/ 6.729 seconds = 7.43 MB/sec

Voila!

--
Bruce Johnson
University of Arizona
College of Pharmacy
Information Technology Group

Institutions do not have opinions, merely customs


--
You received this message because you are a member of G-Group, a group for 
those using G3, G4, and G5 desktop Macs - with a particular focus on Power Macs.
The list FAQ is at http://lowendmac.com/lists/g-list.shtml and our netiquette 
guide is at http://www.lowendmac.com/lists/netiquette.shtml
To post to this group, send email to g3-5-list@googlegroups.com
For more options, visit this group at http://groups.google.com/group/g3-5-list

Reply via email to