DocumentCode :
635211
Title :
Toddler: Detecting performance problems via similar memory-access patterns
Author :
Nistor, Adrian ; Linhai Song ; Marinov, Darko ; Shan Lu
Author_Institution :
Univ. of Illinois at Urbana-Champaign, Urbana, IL, USA
fYear :
2013
fDate :
18-26 May 2013
Firstpage :
562
Lastpage :
571
Abstract :
Performance bugs are programming errors that create significant performance degradation. While developers often use automated oracles for detecting functional bugs, detecting performance bugs usually requires time-consuming, manual analysis of execution profiles. The human effort for performance analysis limits the number of performance tests analyzed and enables performance bugs to easily escape to production. Unfortunately, while profilers can successfully localize slow executing code, profilers cannot be effectively used as automated oracles. This paper presents Toddler, a novel automated oracle for performance bugs, which enables testing for performance bugs to use the well established and automated process of testing for functional bugs. Toddler reports code loops whose computation has repetitive and partially similar memory-access patterns across loop iterations. Such repetitive work is likely unnecessary and can be done faster. We implement Toddler for Java and evaluate it on 9 popular Java codebases. Our experiments with 11 previously known, real-world performance bugs show that Toddler finds these bugs with a higher accuracy than the standard Java profiler. Using Toddler, we also found 42 new bugs in six Java projects: Ant, Google Core Libraries, JUnit, Apache Collections, JDK, and JFreeChart. Based on our bug reports, developers so far fixed 10 bugs and confirmed 6 more as real bugs.
Keywords :
Java; program control structures; program debugging; program testing; software performance evaluation; Ant project; Apache Collections project; Google Core Libraries project; JDK project; JFreeChart project; JUnit project; Java codebases; Java projects; Toddler framework; automated functional bug testing process; automated oracle; code loop iterations; functional bug detection; memory-access patterns; performance bug detection; performance degradation; performance problem detection; performance test analysis; programming errors; Computer bugs; Data structures; Instruments; Java; Libraries; Pediatrics; Testing;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Engineering (ICSE), 2013 35th International Conference on
Conference_Location :
San Francisco, CA
Print_ISBN :
978-1-4673-3073-2
Type :
conf
DOI :
10.1109/ICSE.2013.6606602
Filename :
6606602
Link To Document :
بازگشت