首页 | 本学科首页   官方微博 | 高级检索  
     


Performance comparison of query-based techniques for anti-pattern detection
Affiliation:1. Informatics Department (DIN), State University of Maringá (UEM), CEP 87020-900, Maringá, Brazil;2. Computer Science Department (DInf), Federal University of Paraná (UFPR), CP 19.081, CEP 81.531-970, Curitiba, Brazil;2. CIS, SBSE Research Laboratory, University of Michigan, Michigan, USA;1. Department of Computer Science, Federal University of Lavras, Lavras, Brazil;2. Department of Computer Science, Federal University of Minas Gerais, Belo Horizonte, Brazil
Abstract:ContextProgram queries play an important role in several software evolution tasks like program comprehension, impact analysis, or the automated identification of anti-patterns for complex refactoring operations. A central artifact of these tasks is the reverse engineered program model built up from the source code (usually an Abstract Semantic Graph, ASG), which is traditionally post-processed by dedicated, hand-coded queries.ObjectiveOur paper investigates the costs and benefits of using the popular industrial Eclipse Modeling Framework (EMF) as an underlying representation of program models processed by four different general-purpose model query techniques based on native Java code, OCL evaluation and (incremental) graph pattern matching.MethodWe provide in-depth comparison of these techniques on the source code of 28 Java projects using anti-pattern queries taken from refactoring operations in different usage profiles.ResultsOur results show that general purpose model queries can outperform hand-coded queries by 2–3 orders of magnitude, with the trade-off of an increased in memory consumption and model load time of up to an order of magnitude.ConclusionThe measurement results of usage profiles can be used as guidelines for selecting the appropriate query technologies in concrete scenarios.
Keywords:Anti-patterns  Refactoring  Performance measurements  Columbus  EMF-IncQuery  OCL
本文献已被 ScienceDirect 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号