commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebb <seb...@gmail.com>
Subject Re: [lang] Findbugs, performance, fun
Date Sun, 15 Mar 2009 18:20:23 GMT
On 15/03/2009, Henri Yandell <flamefew@gmail.com> wrote:
> On Sun, Mar 15, 2009 at 5:08 AM, sebb <sebbaz@gmail.com> wrote:
>  > On 15/03/2009, Henri Yandell <flamefew@gmail.com> wrote:
>
>  >>
>
> >>  Anyway... amusing play stuff when I should be sleeping; and not
>  >>  believing FindBugs too much. Need to try for Double, Long etc; maybe
>  >>  this lore holds more true there. Plus maybe it's Apple's JVM being
>  >>  interesting and this holds true in Sun land.
>  >
>  > I think you treat equal times unfairly - they are neither slower nor faster.
>  > Also, the variables are not used, so the compiler could well optimise
>  > the loop away.
>
>
> Agreed, but I didn't see an equals at any point in the output so it's
>  again lost in the noise.
>
>  I think I'd have seen radical differences if the compiler was
>  optimizing the loop away as one or both of the numbers would have been
>  0 (or at least constant).
>

I get very different results using your code and the one in the link
(I editted that to provide the loop count on the command line).

The other test consistently showed that valueOf was faster.

>  Hen
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>  For additional commands, e-mail: dev-help@commons.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message