Home Journals Author Services About Submit Article


Academic Publishing

E-ISSN 3041-4296 Contact | Reviewer Login | Home

European Journal of Scientific Research and Reviews
About Journal | Editorial Board | Instructions for Authors | Archive | CONTACT |

Archive
Aims and Scope
Abstracting & Indexing
Most Accessed Articles
Most Downloaded Articles
Most Cited Articles
 
Research Article
Online Published: 04 Feb 2026
 


Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort

Md Sydul Islam, Pranto Halder, Shahriar Shakil.


Abstract
Aim/Background: Insertion Sort is widely taught in computer science, yet its practical runtime can vary substantially depending on the programming language and the structure of the input data. This study aims to provide a language-aware empirical comparison of Insertion Sort and to complement benchmark results with machine-learning–based runtime classification.
Methods: Insertion Sort was implemented and evaluated in six languages (C, C++, Go, Java, PHP, and Python). Execution time was measured under a controlled hardware/software environment using identical datasets of three sizes (1,000; 10,000; and 100,000 elements) and four input patterns (ascending, descending, nearly sorted, and random). To interpret performance trends, supervised machine learning models were trained to classify runtime behavior into Fast, Moderate, and Slow categories, and a Relative Execution Time Ratio (RETR) metric was introduced to normalize runtimes against the fastest observed case.
Results: Go achieved the best overall performance, followed by Java, while C and C++ produced mid-range results. Python and PHP were consistently the slowest, with the largest slowdowns observed for large and reverse-ordered inputs. For runtime classification, Random Forest outperformed XGBoost, achieving 93% accuracy compared with 87% for XGBoost. RETR enabled a clearer cross-language comparison by standardizing runtimes relative to the fastest baseline.
Conclusion: Insertion Sort performance is strongly influenced by both programming language and input characteristics. Combining benchmarking with ML-based classification and normalized metrics (RETR) offers a more interpretable view of runtime behavior and supports better alignment of algorithm choices with language and data context in real-world applications.

Key words: Keywords— Insertion Sort, Programming Languages, Runtime Performance, Data Patterns, Machine Learning, Random Forest, XGBoost, Relative Execution Time Ratio (RETR)


 
ARTICLE TOOLS
Abstract
PDF Fulltext
How to cite this articleHow to cite this article
Citation Tools
Related Records
 Articles by Md Sydul Islam
Articles by Pranto Halder
Articles by Shahriar Shakil
on Google
on Google Scholar


How to Cite this Article
Pubmed Style

Islam MS, Halder P, Shakil S. Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort. Eu J Sci Res Rev. 2026; 4(1): 14-28. doi:10.5455/EJSRR.20251025063150


Web Style

Islam MS, Halder P, Shakil S. Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort. https://www.wisdomgale.com/ejsrr/?mno=292542 [Access: February 07, 2026]. doi:10.5455/EJSRR.20251025063150


AMA (American Medical Association) Style

Islam MS, Halder P, Shakil S. Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort. Eu J Sci Res Rev. 2026; 4(1): 14-28. doi:10.5455/EJSRR.20251025063150



Vancouver/ICMJE Style

Islam MS, Halder P, Shakil S. Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort. Eu J Sci Res Rev. (2026), [cited February 07, 2026]; 4(1): 14-28. doi:10.5455/EJSRR.20251025063150



Harvard Style

Islam, M. S., Halder, . P. & Shakil, . S. (2026) Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort. Eu J Sci Res Rev, 4 (1), 14-28. doi:10.5455/EJSRR.20251025063150



Turabian Style

Islam, Md Sydul, Pranto Halder, and Shahriar Shakil. 2026. Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort. European Journal of Scientific Research and Reviews, 4 (1), 14-28. doi:10.5455/EJSRR.20251025063150



Chicago Style

Islam, Md Sydul, Pranto Halder, and Shahriar Shakil. "Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort." European Journal of Scientific Research and Reviews 4 (2026), 14-28. doi:10.5455/EJSRR.20251025063150



MLA (The Modern Language Association) Style

Islam, Md Sydul, Pranto Halder, and Shahriar Shakil. "Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort." European Journal of Scientific Research and Reviews 4.1 (2026), 14-28. Print. doi:10.5455/EJSRR.20251025063150



APA (American Psychological Association) Style

Islam, M. S., Halder, . P. & Shakil, . S. (2026) Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort. European Journal of Scientific Research and Reviews, 4 (1), 14-28. doi:10.5455/EJSRR.20251025063150