In contemporary software development, the extent to which Java applications utilize object-oriented programming paradigms remains a subject of interest. Given that some studies highlight the significant overhead of OOP, it is crucial to examine how modern applications address this issue and determine if they tend to shift towards procedural approach for enhanced performance. This study evaluates the runtime behavior of 28 open source Java frameworks, with the help of YourKit profiler. We observed a dominant percentage of instance methods and constructors compared to static methods. That signifies a developer’s preference for the object-oriented approach much more frequently than the procedural approach, despite its associated drawbacks.
This mono-repository contains the following modules:
- cost-of-oop - the main module with the profiling results of 28 Java frameworks. This module contains all scripts used for profiling each program. This includes the program startup procedures, the initialization of the profiler, result exports, and testing scripts such as those for Apache JMeter projects.
- oop-statistics-filter - the module that holds the code that aggregates the profiling results received in the cost-of-oop module. This module creates final CSV files that might be used for further analysis.
If you use this software in your research, please cite it using the following entry.