@article {USH15, title = {Performance Comparison of Query-based Techniques for Anti-pattern Detection}, journal = {Information and Software Technology}, volume = {65}, number = {C}, year = {2015}, month = {sep}, pages = {147{\textendash}165}, abstract = {Context Program 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. Objective Our 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. Method We 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. Results Our results show that general purpose model queries can outperform hand-coded queries by 2{\textendash}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. Conclusion The measurement results of usage profiles can be used as guidelines for selecting the appropriate query technologies in concrete scenarios.}, keywords = {Anti-patterns, Columbus, EMF-IncQuery, OCL, Performance measurements, refactoring}, issn = {0950-5849}, doi = {10.1016/j.infsof.2015.01.003}, url = {http://www.sciencedirect.com/science/article/pii/S0950584915000051?via\%3Dihub}, author = {Ujhelyi, Zolt{\'a}n and Sz{\H o}ke, G{\'a}bor and Horv{\'a}th, {\'A}kos and Csisz{\'a}r, Norbert Istv{\'a}n and L{\'a}szl{\'o} Vid{\'a}cs and Varr{\'o}, D{\'a}niel and Rudolf Ferenc} } @conference {UHV14, title = {Anti-pattern Detection with Model Queries: A Comparison of Approaches}, booktitle = {Proceedings of the 2014 Software Evolution Week (Merger of the 18th IEEE European Conference on Software Maintenance and Reengineering \& 21st IEEE Working Conference on Reverse Engineering {\textendash} CSMR-WCRE 2014)}, year = {2014}, note = {Best paper of the conference}, pages = {293{\textendash}302}, publisher = {IEEE Computer Society}, organization = {IEEE Computer Society}, address = {Antwerp, Belgium}, abstract = {Program 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 Semantic Graph, ASG), which is traditionally post-processed by dedicated, hand-coded queries. Our paper investigates the use of the popular industrial Eclipse Modeling Framework (EMF) as an underlying representation of program models processed by three general-purpose model query techniques based on native Java code, local-search and incremental evaluation. We provide in-depth comparison of these techniques on the source code of 17 Java projects using queries taken from refactoring operations in different usage profiles. Our results show that general purpose model queries outperform hand-coded queries by 2-3 orders of magnitude, while there is a 5-10 times increase in memory consumption and model load time. In addition, measurement results of usage profiles can be used as guidelines for selecting the appropriate query technologies in concrete scenarios.}, keywords = {antipattern detection, program queries, query technologies, select:quality}, doi = {10.1109/CSMR-WCRE.2014.6747181}, url = {http://ieeexplore.ieee.org/document/6747181/}, author = {Ujhelyi, Zolt{\'a}n and Horv{\'a}th, {\'A}kos and Varr{\'o}, D{\'a}niel and Csisz{\'a}r, Norbert Istv{\'a}n and Sz{\H o}ke, G{\'a}bor and L{\'a}szl{\'o} Vid{\'a}cs and Rudolf Ferenc} }