Abstract
To identify optimisation opportunities, Java developers often use sampling profilers that attribute a percentage of run time to the methods of a program. Even so these profilers use sampling, are probabilistic in nature, and may suffer for instance from safepoint bias, they are normally considered to be relatively reliable. However, unreliable or inaccurate profiles may misdirect developers in their quest to resolve performance issues by not correctly identifying the program parts that would benefit most from optimisations.
With the wider adoption of profilers such as async-profiler and Honest Profiler, which are designed to avoid the safepoint bias, we wanted to investigate how precise and accurate Java sampling profilers are today. We investigate the precision, reliability, accuracy, and overhead of async-profiler, Honest Profiler, Java Flight Recorder, JProfiler, perf, and YourKit, which are all actively maintained. We assess them on the fully deterministic Are We Fast Yet benchmarks to have a stable foundation for the probabilistic profilers.
We find that profilers are relatively reliable over 30 runs and normally report the same hottest method. Unfortunately, this is not true for all benchmarks, which suggests their reliability may be application-specific. Different profilers also report different methods as hottest and cannot reliably agree on the set of top 5 hottest methods. On the positive side, the average run time overhead is in the range of 1% to 5.4% for the different profilers.
Future work should investigate how results can become more reliable, perhaps by reducing the observer effect of profilers by using optimisation decisions of unprofiled runs or by developing a principled approach of combining multiple profiles that explore different dynamic optimisations.
With the wider adoption of profilers such as async-profiler and Honest Profiler, which are designed to avoid the safepoint bias, we wanted to investigate how precise and accurate Java sampling profilers are today. We investigate the precision, reliability, accuracy, and overhead of async-profiler, Honest Profiler, Java Flight Recorder, JProfiler, perf, and YourKit, which are all actively maintained. We assess them on the fully deterministic Are We Fast Yet benchmarks to have a stable foundation for the probabilistic profilers.
We find that profilers are relatively reliable over 30 runs and normally report the same hottest method. Unfortunately, this is not true for all benchmarks, which suggests their reliability may be application-specific. Different profilers also report different methods as hottest and cannot reliably agree on the set of top 5 hottest methods. On the positive side, the average run time overhead is in the range of 1% to 5.4% for the different profilers.
Future work should investigate how results can become more reliable, perhaps by reducing the observer effect of profilers by using optimisation decisions of unprofiled runs or by developing a principled approach of combining multiple profiles that explore different dynamic optimisations.
| Original language | English |
|---|---|
| Title of host publication | MPLR 2023 - Proceedings of the 20th ACM SIGPLAN International Conference on Managed Programming Languages and Runtimes, Co-located with |
| Subtitle of host publication | SPLASH 2023 |
| Editors | Rodrigo Bruno, Eliot Moss |
| Publisher | Association for Computing Machinery, Inc |
| Pages | 181-182 |
| Number of pages | 2 |
| ISBN (Electronic) | 9798400703805 |
| DOIs | |
| Publication status | Published - 19 Oct 2023 |
| Externally published | Yes |
| Event | 20th International Conference on Managed Programming Languages and Runtimes, MPLR 2023, co-located with SPLASH 2023 - Cascais, Portugal Duration: 22 Oct 2023 → … |
Publication series
| Name | MPLR 2023 - Proceedings of the 20th ACM SIGPLAN International Conference on Managed Programming Languages and Runtimes, Co-located with: SPLASH 2023 |
|---|
Conference
| Conference | 20th International Conference on Managed Programming Languages and Runtimes, MPLR 2023, co-located with SPLASH 2023 |
|---|---|
| Country/Territory | Portugal |
| City | Cascais |
| Period | 22.10.2023 → … |
Fields of science
- 102 Computer Sciences