| 1 |
Examples: |
| 2 |
|
| 3 |
It won't take *that* long to download this 650MB cd image over Mom's |
| 4 |
33.6Kbps modem, will it? I can just let it run all night. |
| 5 |
|
| 6 |
% ucalc "650MB/33.6Kbps" |
| 7 |
1.834 day |
| 8 |
|
| 9 |
What's the throughput for random 8KB reads, using a hard disk with |
| 10 |
20MB/sec transfers and an average access latency of 15ms? |
| 11 |
|
| 12 |
% perl -MMath::Calc::Units=readable -le 'print foreach (readable("8KB / (8KB/(20MB/sec) + 15ms)"))' |
| 13 |
|
| 14 |
532.3 byte / millisec |
| 15 |
1.785 gigabyte / hour |
| 16 |
42.83 gigabyte / day |
| 17 |
519.8 kilobyte / sec |
| 18 |
30.46 megabyte / minute |
| 19 |
|
| 20 |
Note: ucalc is a thin wrapper script that pretty much does what the |
| 21 |
one-liner above does. |
| 22 |
|
| 23 |
Installing: |
| 24 |
|
| 25 |
perl Makefile.PL |
| 26 |
make |
| 27 |
make test |
| 28 |
make install |
| 29 |
|
| 30 |
Documentation: perldoc Math::Calc::Units |
| 31 |
|
| 32 |
Author: Steve Fink <[email protected]> |