bbloke
Registered
A friend of mine who is very experienced with Linux and various forms of UNIX asked me to run a speed test via the Terminal app. He said that his laptop (running Linux) executed the following command in 48 seconds:
time awk 'BEGIN {for(i=0;i<10000;i++)for(j=0;j<10000;j++);}'
On my QuickSilver DP 1 GHz machine, it took... 60 seconds! I asked how fast his laptop was and was disappointed to find it was only a 1.13 GHz (Pentium) machine.
I'm not out to start any G4 vs. Pentium debates, but I wondered why his laptop would astonish me by performing so very much better than I expected compared to my G4! It also is particularly odd, as it does not reflect my "feeling" of the relative speeds in the real world (I use a 1.5 GHz P4 at work, alas). A different friend of mine ran some C-based code on his Linux machine (600 MHz x86) and surprised himself by finding it was quicker than when compiled on what was supposed to be a much faster UNIX workstation.
I'm not a programmer, and I'm not an expert on hardware or coding. But I have been left wondering what the reasons could be. Does Linux have any particular advantage in this area? Does this test bring out the particular strengths/weaknesses of the different architecture?
time awk 'BEGIN {for(i=0;i<10000;i++)for(j=0;j<10000;j++);}'
On my QuickSilver DP 1 GHz machine, it took... 60 seconds! I asked how fast his laptop was and was disappointed to find it was only a 1.13 GHz (Pentium) machine.
I'm not out to start any G4 vs. Pentium debates, but I wondered why his laptop would astonish me by performing so very much better than I expected compared to my G4! It also is particularly odd, as it does not reflect my "feeling" of the relative speeds in the real world (I use a 1.5 GHz P4 at work, alas). A different friend of mine ran some C-based code on his Linux machine (600 MHz x86) and surprised himself by finding it was quicker than when compiled on what was supposed to be a much faster UNIX workstation.
I'm not a programmer, and I'm not an expert on hardware or coding. But I have been left wondering what the reasons could be. Does Linux have any particular advantage in this area? Does this test bring out the particular strengths/weaknesses of the different architecture?