realbasic-nug
[Top] [All Lists]

Re: Performance and faster idioms

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Performance and faster idioms
From: Charles Yeomans <yeomans at desuetude dot com>
Date: Mon, 28 Feb 2005 12:34:47 -0500
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BE488844 dot 1AD1F%maxduepuntozero at yahoo dot it> <df61ece54e9a636c0043fa7cc1c22abf at mac dot com>

On Feb 28, 2005, at 8:28 AM, Thomas Reed wrote:

On Feb 28, 2005, at 2:35 AM, Massimo Valle wrote:

I used microseconds to calculate the timing and I continue to get about 3x
speed on if-then. Using ticks I get larger difference: 9x

That doesn't make any sense... Why should the timing method you use influence the total speed of the test code? I would think this means there's something wrong with the test or the calculations somewhere.

Because the act of calling Microseconds or Ticks affects the code in which it's called. There is a lot of stuff going on at the processor level, most of which I don't understand, that affects execution speed.

--------------
Charles Yeomans

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>