Feature-driven comparison of Git and Mercurial using DBSCAN and Random Forest
Git and Mercurial are prominent distributed version control systems that differ in their underlying architecture and resource consumption. This study presents a systematic comparison between their performance using a machine learning-driven approach that measures their resource consumption based on synthetically generated repositories to systematically control key variables. To eliminate anomalies, the Density-Based Spatial Clustering of Applications with Noise (DBSCAN) algorithm was applied. The influence of repository features was determined using the Random Forest (RF) in three performance dimensions: CPU time, memory usage, and repository size. The findings indicate that Git demonstrated superior efficiency in CPU and memory usage, particularly in branching operations, while Mercurial exhibited better storage optimization and consistency, making it suitable for large-scale projects with constrained storage capacity. To interpret our results, SHapley Additive exPlanations (SHAP) was used to reveal the direction and strength of features influence that correspond to the repository characteristics. These findings offer a practical guidance for selecting version control systems based on specific project requirements. • Systematic Random Forest + DBSCAN used to compare Git and Mercurial. • Synthetic repos created to control features and test scalability. • Git showed superior CPU and memory efficiency in branching. • Mercurial optimized storage, ideal for large-scale projects. • SHAP revealed trade-offs in computation vs. storage resilience.
Authors
- Rashed Bahlool (ORCID: https://orcid.org/0009-0004-3116-6983)
- Sameh Foulad
- Sami Dagash
Institutions
- University of Bahrain (BH)
Publication Details
- Journal
- Array
- Published
- 2025-09-23
- DOI
- https://doi.org/10.1016/j.array.2025.100519
- Primary Topic
- Advanced Steganography and Watermarking Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00