Re: Larkin, Power BASIC cannot be THAT good:



On a sunny day (Fri, 15 May 2009 18:19:18 +0100) it happened Martin Brown
<|||newspam|||@nezumi.demon.co.uk> wrote in
<CshPl.60236$i24.8001@xxxxxxxxxxxx>:

Jan Panteltje wrote:
On a sunny day (Fri, 15 May 2009 09:04:43 -0700 (PDT)) it happened Tim
Williams <tmoranwms@xxxxxxxxx> wrote in
<a98d6394-e9bf-4e1d-9af6-7917f68a5bf6@xxxxxxxxxxxxxxxxxxxxxxxxxxx>:

On May 15, 9:34 am, Jan Panteltje <pNaonStpealm...@xxxxxxxxx> wrote:
The run time in C is 13 seconds here on a 1GHz processor.
Can you specify your 'old HP computer' ?

I can win maybe 1 second by writing the code a bit different.
And a 3GHz would do it in 12 / 4 = 4 seconds...
A bigger cache would help a bit perhaps.

The only way I can get it to run that slow on my 3GHz old P4 HT chip is
with full debugging enabled and the optimiser completely disabled in MS
C++ Win32 console environment. I would hope for nearly an order of
magnitude faster using SSE.

Cool, I just tried with gcc -O4 and it runs in .56 the time :-)



NB You really should initialise the arrays first.

That will not affect timing of the loop.

.



Relevant Pages

  • Re: Larkin, Power BASIC cannot be THAT good:
    ... Jan Panteltje wrote: ... Williams wrote in ... Can you specify your 'old HP computer'? ... I can win maybe 1 second by writing the code a bit different. ...
    (sci.electronics.design)
  • Re: Nothin left in Maryland
    ... into the street and beaten by an angry mob for writing.. ... Williams doing a lot of calling this year and Larry ... :> Johnson Sr.'s connections and stellar recruiting efforts paid off ...
    (rec.sport.football.college)
  • Re: Is there any writing guide around?
    ... I am looking for a guide with general extensive writing rules ... derivative of MLA for high school, ... The MLA Handbook / MLA Style Manual ... Similar to Williams; they teach the art of writing. ...
    (comp.text.tex)
  • Re: os.path.getsize() on Windows
    ... WRITING, not reading. ... That's why he has to specify when he opens it that he wants exclusive ...
    (comp.lang.python)
  • Re: Help request with the Lists
    ... I meant that if you have a field that is say a Choice field then you can ... specify that one of the alternative values you specify for it is the default ... Now that you *are* into writing lines of code (because you can't do what you ... I am looking a way, to make an example, auto numerate documents. ...
    (microsoft.public.sharepoint.portalserver.development)

Quantcast