Archives
2010 June 2010 May 2010 February 2010 January 2009 October 2009 September 2009 April 2009 February 2009 January 2008 July 2008 May 2008 April 2008 March
Welcome back.
» forget me
Subscribe:
Login:
|
| An Interesting Processor Comparison |
| Fri October 9th, 2009 at 9:22 PM PDT |
My latest Computer Science assignment involved a large amount of number crunching and text processing, and seeing as how I have a large assortment of computers around my apartment, I figured I'd try them all out and see how they stacked up. The results proved quite surprising.
The data I needed to process was a large text file (10680 lines), where each line had a source IP address, a destination IP address, and various network statistics. I wrote two scripts to process this: the first took each IP address, looked it up in a file that mapped IPs to latitude-longitude pairs (816 lines long), and printed lines with the address substituted for the location. The second script took these two locations and calculated the distance on the globe between them.
Script #1, for each input line, grep'd the ip-location map twice (once for source, once for dest), and printed the new line with the IPs substituted for locations.
Script #2, for each line, ran a perl script that used the Math::Trig module to compute the great circle distance between the locations, and printed the new line with the locations substituted for the distance between them.
These scripts were run as a pipeline, so as to take advantage of dual-core processors:
% scripts/ip-loc-translate.sh < data/raw.txt \ | scripts/loc-dist-translate.sh > data/post-processed.txt
The Machines
| System Name | Processor | Processor Speed | User Time | System Time |
| Delta-Zero | AMD AthlonXP 2100+ | 1x 1733 MHz | 348.61 s | 107.19 s |
| Element | AMD Athlon64 3200+ | 1x 2000 MHz | 291.663 s | 143.437 s |
| Skylight | Intel Core Duo T2050 | 2x 1600 MHz | 1205.708 s | 189.748 s |
Yes, that's correct. The Core Duo was more than THREE TIMES SLOWER than the old crusty AthlonXP at this test, despite being able to take full advantage of the parallellized script, being dual-core. For the life of me, I can't figure out why. Both AMD machines are using DDR ram, whereas the Core Duo is using faster DDR2. The Core Duo has 2MB of on-chip cache, the Athlon64 has 1MB, and the AtlonXP only has 256K.
It just goes to show how good those AMD processors are. I often rip on that AthlonXP as being the hottest-running chip I've ever seen (it regularly hits 60+ degress Celcius at idle), but it's still plenty good at doing things that matter.
|
|
»
(make a comment)
|
Comments:
no comments to show
|
| Shoutbox |
Anonymous:
lonely shoutbox :(
Mon April 7th, 2008 at 5:09 PM PDT
|
Anonymous:
hello
Mon April 7th, 2008 at 5:12 PM PDT
|
Anonymous:
o hai
Mon April 28th, 2008 at 12:31 PM PDT
|
CHIZUBAGA:
I CAN HAZ CHIZUBAGA!!!!!!!
Wed January 20th, 2010 at 12:58 PM PST
|
Not Jeremy:
o hai remember when i threw hot sauz in yer eye. lulz
Thu January 28th, 2010 at 11:28 AM PST
|
JEREMY:
MOAR NAPKINS DURR HURR
Thu February 11th, 2010 at 9:33 AM PST
|
Shoutbox:
I wuz on a DAtZ.. haffing chizubaga!! Om nom nom nom!!
Wed May 26th, 2010 at 1:04 PM PDT
|
Totally not anyone you know:
Problem?
Thu June 3rd, 2010 at 2:09 PM PDT
|
Random Randomstein:
Shitpickle.
Fri June 11th, 2010 at 6:04 PM PDT
|
|