Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

My current Windows PC is playing up, so I've decided to replace it. I use it for word processing, email and Perl programming. After I made enquiries, I kept getting asked do I want AMD dual core or a Pentium IV? The former has a lower clock speed than the latter, but from what I understand clock speed is no longer the final arbiter of CPU performance.

How do I compare the two? Can Perl take specific advantage of the dual core CPU? Speed is important, as some of my Perl code is CPU intensive.

My Linux box is identical to my Windows one, and I'll look at upgrading in the near future, but as it's still running fine the urgency isn't there, but I'll have the same questions regarding Perl performance under Linux too

Replies are listed 'Best First'.
Re: Slightly OT: Getting a new PC
by GrandFather (Saint) on Jun 18, 2006 at 01:11 UTC

    If you run more than one application at a time or run multi-threaded applications the dual-core processor is an advantage.


    DWIM is Perl's answer to Gödel
Re: Slightly OT: Getting a new PC
by liverpole (Monsignor) on Jun 18, 2006 at 02:54 UTC
    Personally, I would go with the AMD dual core for a couple of reasons.

    First, as Grandfather has said, the dual core should benefit you when multiple apps or multi-threaded apps are running.

    Secondly, I read a very in-depth article about 5 years ago, explaining why the Pentium IV was not as well-designed as it could have been.  I've tried looking for the original article without success, but the author made a number of apparently well-researched and technically plausible-sounding points about how Intel had taken shortcuts, such as cutting back on the size of the cache (the L2 cache, if memory serves correctly), and other design weaknesses, in order to get the chip to market in time.  I do remember that article giving me strong negative feelings towards the Pentium IV ever since.

    You are correct that clock speed is not the final arbiter of performance, and in fact the article which gave the Pentium IV low marks made the argument that, although it had a higher clock speed, it was wasting a lot of cycles of processing time due to its design flaws, and therefore seemed faster only if you were comparing clock speed and nothing else.  Consequently, when the motherboard/CPU on our desktop computer had to be replaced, we went with an AMD chip.  Although the clock speed was somewhat less, the performance was excellent, and I've always been a fan of AMD since.


    s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
Re: Slightly OT: Getting a new PC
by Marza (Vicar) on Jun 18, 2006 at 01:03 UTC

    Take the one that suits your wallet the best.

    Unless you are doing something out of the ordinary, many perl scripts don't need the fastest setup possible.

    What kind of scripts are you writing?

Re: Slightly OT: Getting a new PC
by Gavin (Archbishop) on Jun 18, 2006 at 10:16 UTC
    Stick with AMD dual core.
    AMD has always served me very well for the price!
A reply falls below the community's threshold of quality. You may see it by logging in.