Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #29532
| From | Kevin McMurtrie <mcmurtrie@pixelmemory.us> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Benchmarking |
| References | <pw54eqexxnm.jwkyd2uo8ri3$.dlg@40tude.net> |
| Date | 2014-08-03 12:04 -0700 |
| Message-ID | <mcmurtrie-496FDB.12040903082014@news.sonic.net> (permalink) |
| Organization | Sonic.Net |
In article <pw54eqexxnm.jwkyd2uo8ri3$.dlg@40tude.net>, Joerg Meier <joergmmeier@arcor.de> wrote: > Hello, > > since more than once people in this group have brought up micro benchmarks, > myself included, and many of them were incredibly flawed (like ignoring JVM > warmup), I thought this link might be interesting to others: > > Rules that every microbenchmark should follow to be considered relevant: > > <https://wikis.oracle.com/display/HotSpotInternals/MicroBenchmarks> > > And a short writeup JMH: > > <http://ashkrit.blogspot.de/2013/07/how-to-write-micro-benchmark-in-java.html> > > A fantastic way to generate micro benchmarks without having to worry about > the framework through a handful of convenient annotations, not unlike unit > tests. > > Liebe Gruesse, > Joerg HotSpot inlining needs to be considered too, and that depends on the global environment. Not only is that difficult to benchmark, but it can dynamically change in the running application too. The difference can be enormous for stream parsing, audio, graphics, etc. You'd benchmark this to know whether or not to refactor your optimized classes so that there is never more than one usable declaration of a method that must be optimized. It's not always easy, such as when optimizing older JRE abstract base classes where everything is synchronized and subclassed everywhere.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Benchmarking Joerg Meier <joergmmeier@arcor.de> - 2014-08-03 18:13 +0200
Re: Benchmarking Kevin McMurtrie <mcmurtrie@pixelmemory.us> - 2014-08-03 12:04 -0700
Re: Benchmarking Robert Klemme <shortcutter@googlemail.com> - 2014-08-05 07:21 +0200
csiph-web