JMH slides from Portland Java User Group
aleksey.shipilev at oracle.com
Wed Feb 11 19:17:44 UTC 2015
On 02/11/2015 01:10 PM, Trask Stalnaker wrote:
> I just wanted to share some slides I used recently for a JMH talk at my
> local Java user group.
Thanks, it's heartwarming to see JMH Samples provide enough substrate to
base on :)
A few comments before the link is out:
* I wish people stop using explicit Blackhole when an implicit return
is cleaner. Explicit Blackhole is only needed when you have multiple
values to consume, and you can't/won't return the wrapper.
* @Group is about asymmetric benchmarks, not multithreading benchmarks
per se. You can run the symmetric multithreaded benchmarks without
@Group, just by adding the threads.
* Nice observation about "private final int x" and constant folding, we
should do that in samples. In fact, contributions to the sample code and
language are appreciated.
More information about the jmh-dev