[concurrency-interest] help show speed-up on a trivial but manual array-map operation?

Doug Lea dl at cs.oswego.edu
Fri Mar 9 08:20:22 EST 2012

On 03/09/12 08:11, Doug Lea wrote:

> 1. Microbenchmarking artifacts: The results of the
> computations are never used so JVMs can kill some of the
> code. The attached edited version includes a "checkSum" method
> that combats this.

Plus, as I should have checked before, the use of a linear
stream of initial values is also subject to microbenchmarking
artifacts. Filling with random values instead combats this.

The main moral is that reliably measuring anything on modern
systems is harder than you'd think it should be.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: VecAdd.java
Type: text/x-java
Size: 4059 bytes
Desc: not available
URL: <http://cs.oswego.edu/pipermail/concurrency-interest/attachments/20120309/5fd7960c/attachment.bin>

More information about the Concurrency-interest mailing list