An Exploratory Study of the Impact of Parameterization on JMH Measurement Results in Open-Source Projects

被引:6
|
作者
Samoaa, Hazem [1 ]
Leitner, Philipp [1 ]
机构
[1] Chalmers Univ Gothenburg, Gothenburg, Sweden
基金
瑞典研究理事会;
关键词
D O I
10.1145/3427921.3450243
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
The Java Microbenchmarking Harness (JMH) is a widely used tool for testing performance-critical code on a low level. One of the key features of JMH is the support for user-defined parameters, which allows executing the same benchmark with different workloads. However, a benchmark configured with n parameters with m different values each requires JMH to execute the benchmark m(n) times (once for each combination of configured parameter values). Consequently, even fairly modest parameterization leads to a combinatorial explosion of benchmarks that have to be executed, hence dramatically increasing execution time. However, so far no research has investigated how this type of parameterization is used in practice, and how important different parameters are to benchmarking results. In this paper, we statistically study how strongly different user parameters impact benchmark measurements for 126 JMH benchmarks from five well-known open source projects. We show that 40% of the studied metric parameters have no correlation with the resulting measurement, i.e., testing with different values in these parameters does not lead to any insights. If there is a correlation, it is often strongly predictable following a power law, linear, or step function curve. Our results provide a first understanding of practical usage of user-defined JMH parameters, and how they correlate with the measurements produced by benchmarks. We further show that a machine learning model based on Random Forest ensembles can be used to predict the measured performance of an untested metric parameter value with an accuracy of 93% or higher for all but one benchmark class, demonstrating that given sufficient training data JMH performance test results for different parameterizations are highly predictable.
引用
收藏
页码:213 / 224
页数:12
相关论文
共 50 条
  • [1] An Exploratory Study on the Usage of Gherkin Features in Open-Source Projects
    Chandorkar, Adwait
    Patkar, Nitish
    Di Sorbo, Andrea
    Nierstrasz, Oscar
    [J]. 2022 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING (SANER 2022), 2022, : 1159 - 1166
  • [2] On the fulfillment of coordination requirements in open-source software projects: An exploratory study
    Hunsen, Claus
    Siegmund, Janet
    Apel, Sven
    [J]. EMPIRICAL SOFTWARE ENGINEERING, 2020, 25 (06) : 4379 - 4426
  • [3] An Exploratory Study on God Header Files in Open-Source C Projects
    Wang, Yue
    Chang, Wenhui
    Zou, Yanzhen
    Xie, Bing
    [J]. PROCEEDINGS OF THE 15TH ASIA-PACIFIC SYMPOSIUM ON INTERNETWARE, INTERNETWARE 2024, 2024, : 477 - 486
  • [4] On the fulfillment of coordination requirements in open-source software projects: An exploratory study
    Claus Hunsen
    Janet Siegmund
    Sven Apel
    [J]. Empirical Software Engineering, 2020, 25 : 4379 - 4426
  • [5] Evolution Impact on Architecture Stability in Open-Source Projects
    Alenezi, Mamdouh
    Khellah, Fakhry
    [J]. INTERNATIONAL JOURNAL OF CLOUD APPLICATIONS AND COMPUTING, 2015, 5 (04) : 24 - 35
  • [6] Test suite parallelization in open-source projects: A study on its usage and impact
    Federal University of Pernambuco, Pernambuco, Brazil
    [J]. ASE - Proc. IEEE/ACM Int. Conf. Autom. Softw. Eng., (838-848):
  • [7] Test Suite Parallelization in Open-Source Projects: A Study on Its Usage and Impact
    Candido, Jeanderson
    Melo, Luis
    d'Amorim, Marcelo
    [J]. PROCEEDINGS OF THE 2017 32ND IEEE/ACM INTERNATIONAL CONFERENCE ON AUTOMATED SOFTWARE ENGINEERING (ASE'17), 2017, : 838 - 848
  • [8] Release conventions of open-source software: An exploratory study
    Chakroborti, Debasish
    Nath, Sristy Sumana
    Schneider, Kevin A.
    Roy, Chanchal K.
    [J]. JOURNAL OF SOFTWARE-EVOLUTION AND PROCESS, 2023, 35 (01)
  • [9] Exploiting Open-source Projects to Study Software Design
    Fuhrman, Christopher P.
    [J]. INFORMATICS IN EDUCATION, 2007, 6 (01): : 53 - 66
  • [10] Disseminating Architectural Knowledge on Open-Source Projects A Case Study of the Book "Architecture of Open-Source Applications"
    Robillard, Martin P.
    Medvidovic, Nenad
    [J]. 2016 IEEE/ACM 38TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2016, : 476 - 487