AI-driven Java Performance Testing: Balancing Result Quality with Testing Time
Traini, Luca, Di Menna, Federico, Cortellessa, Vittorio
–arXiv.org Artificial Intelligence
Performance testing aims at uncovering efficiency issues of software systems. In order to be both effective and practical, the design of a performance test must achieve a reasonable trade-off between result quality and testing time. This becomes particularly challenging in Java context, where the software undergoes a warm-up phase of execution, due to just-in-time compilation. During this phase, performance measurements are subject to severe fluctuations, which may adversely affect quality of performance test results. However, these approaches often provide suboptimal estimates of the warm-up phase, resulting in either insufficient or excessive warm-up iterations, which may degrade result quality or increase testing time. There is still a lack of consensus on how to properly address this problem. Here, we propose and study an AI-based framework to dynamically halt warm-up iterations at runtime. Specifically, our framework leverages recent advances in AI for Time Series Classification (TSC) to predict the end of the warm-up phase during test execution. We conduct experiments by training three different TSC models on half a million of measurement segments obtained from JMH microbenchmark executions. We find that our framework significantly improves the accuracy of the warm-up estimates provided by state-of-practice and state-of-the-art methods. This higher estimation accuracy results in a net improvement in either result quality or testing time for up to +35.3% of the microbenchmarks. Our study highlights that integrating AI to dynamically estimate the end of the warm-up phase can enhance the cost-effectiveness of Java performance testing.
arXiv.org Artificial Intelligence
Sep-14-2024
- Country:
- Asia
- Japan > Honshū
- Tōhoku > Fukushima Prefecture > Fukushima (0.04)
- South Korea > Seoul
- Seoul (0.04)
- Japan > Honshū
- Europe
- Estonia > Harju County
- Tallinn (0.04)
- France > Hauts-de-France
- Greece > Attica
- Athens (0.04)
- Italy > Abruzzo
- L'Aquila Province > L'Aquila (0.04)
- United Kingdom > England
- Cambridgeshire > Cambridge (0.04)
- Estonia > Harju County
- North America
- Canada
- Alberta > Census Division No. 15
- Improvement District No. 9 > Banff (0.04)
- Quebec > Montreal (0.04)
- Alberta > Census Division No. 15
- United States
- California
- District of Columbia > Washington (0.04)
- New York > New York County
- New York City (0.05)
- Texas > Harris County
- Houston (0.04)
- Washington > King County
- Seattle (0.04)
- Canada
- Oceania > Australia
- Asia
- Genre:
- Research Report > New Finding (1.00)
- Industry:
- Health & Medicine > Health Care Technology (0.67)
- Technology:
- Information Technology
- Artificial Intelligence > Machine Learning
- Neural Networks > Deep Learning (0.93)
- Performance Analysis > Accuracy (0.68)
- Statistical Learning (0.67)
- Data Science > Data Mining (1.00)
- Artificial Intelligence > Machine Learning
- Information Technology