• Home
  • Search
  • Language Aware Sorting: Empirical and ML Driven Performance Evaluation of Insertion Sort
  • https://doi.org/10.5455/ejsrr.20251025063150Copy DOI Icon

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

Show More
  • Abstract
  • Literature Map
  • Similar Papers
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.

Similar Papers
  • Research Article

Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms

  • Jan 01, 2026
  • European Journal of Scientific Research and Reviews.
  • Md Islam +1
  • Conference Article
  • Citations7

A detailed experimental analysis of library sort algorithm

  • Dec 01, 2015
  • Neetu Faujdar +1
  • Research Article
  • Citations2

An aspect-oriented approach to the undergraduate programming language curriculum

  • Nov 30, 2008
  • ACM SIGPLAN Notices
  • Mark A Sheldon +1
  • Research Article
  • Citations8

Landslide hazard risk modeling in north-west of Iran using optimized machine learning models

  • Jun 30, 2020
  • Modeling Earth Systems and Environment
  • Ali Jamali
  • Book Chapter
  • Citations4

Ledger-Based Sorting Algorithm

  • Aug 28, 2019
  • Nakshatra Kothi +3
  • Research Article
  • Citations2

A COMPARATIVE STUDY OF VARIOUS TYPES OF SORTING TECHNIQUES

  • Aug 20, 2017
  • International Journal of Advanced Research in Computer Science
  • Pavleen Kaur
  • Book Chapter
  • Citations3

Non-Extensive Thermodynamics of Algorithmic Processing - the Case of Insertion Sort Algorithm

  • Jan 14, 2011
  • Dominik Strzaka +1
  • Research Article
  • Citations55

Performance Evaluation of C/C++, MicroPython, Rust and TinyGo Programming Languages on ESP32 Microcontroller

  • Dec 28, 2022
  • Electronics
  • Ignas Plauska +2
  • Research Article
  • Citations3

Diagnosis and Management of Sexually Transmitted Infections Using Artificial Intelligence Applications Among Key and General Populations in Sub-Saharan Africa: A Systematic Review and Meta-Analysis

  • Mar 07, 2025
  • Algorithms
  • Claris Siyamayambo +2
  • Conference Article
  • Citations18

Choosing a first programming language

  • Oct 07, 2010
  • Randy M Kaplan
  • Book Chapter

Gender in Computer Science

  • Jan 01, 2006
  • Colette Wanless-Sobel
  • Research Article
  • Citations7

Parallel Data Partitioning Algorithms for Optimization of Data-Parallel Applications on Modern Extreme-Scale Multicore Platforms for Performance and Energy

  • Jan 01, 2018
  • IEEE Access
  • Ravi Reddy Manumachu +1
  • Research Article
  • Citations2

Essential Aspects of Gender-inclusive Computer Science Education

  • Apr 18, 2024
  • International Conference on Gender Research
  • Lisa Sällvin +2
  • Research Article

Empirical Evaluation of Algorithm Performance: Addressing Execution Time Measurement Challenges

  • Jan 07, 2025
  • Informatica
  • Tomaž Dobravec
  • Conference Article
  • Citations5

An examination of mathematics preparation for and progress through three introductory computer science courses

  • Oct 01, 2014
  • Christine F Reilly +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.