Detecting performance anti-patterns for applications developed using object-relational mapping
Tse-Hsun Peter Chen, Weiyi Shang, Zhen Ming Jiang et al. · Proceedings/Proceedings - International Conference on Software Engineering · 2014
Object-Relational Mapping (ORM) provides developers a conceptual abstraction for mapping the application code to the underlying databases. ORM is widely used in industry due to its convenience; permitting developers to focus on developing the business logic without worrying too much about the database access details. However, developers often write ORM code without considering the impact of such code on database performance, leading to cause transactions with timeouts or hangs in large-scale systems. Unfortunately, there is little support to help developers automatically detect suboptimal database accesses. In this paper, we propose an automated framework to detect ORM performance anti-patterns. Our framework automatically flags performance anti-patterns in the source code. Furthermore, as there could be hundreds or even thousands of instances of anti-patterns, our framework provides sup- port to prioritize performance bug fixes based on a statistically rigorous performance assessment. We have successfully evaluated our framework on two open source and one large-scale industrial systems. Our case studies show that our framework can detect new and known real-world performance bugs and that fixing the detected performance anti- patterns can improve the system response time by up to 98%.
Cited by 137 works. doi:10.1145/2568225.2568259
Authors
References
- Statistical power analysis for the behavioral sciences
- Statistical Power Analysis for the Behavioral Sciences
- A cookbook for using the model-view controller user interface paradigm in Smalltalk-80
- Introduction to the Practice of Statistics
- RESTful Web Services
- Effect size, confidence interval and statistical significance: a practical guide for biologists
- Computer Security
- Testing Object-Oriented Systems: Models, Patterns, and Tools
- Preliminary guidelines for empirical research in software engineering
- Concurrent object-oriented programming