• Home
  • Search
  • Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms
  • https://doi.org/10.5455/ejsrr.20251025082011Copy DOI Icon

Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms

Show More
  • Abstract
  • Literature Map
  • Similar Papers
Abstract

Abstract— Aim/Background This study aims to systematically evaluate the practical runtime performance of the Insertion Sort algorithm across six widely used programming languages: C, C++, Go, Java, PHP, and Python. While Insertion Sort’s theoretical time complexity is well established, real-world execution performance may differ significantly due to variations in language paradigms, compilation strategies, and runtime environments. The research focuses on identifying how language-specific characteristics influence actual execution time. Methods The Insertion Sort algorithm was implemented uniformly in all six languages using a shared pseudocode to ensure consistency. Experiments were conducted under controlled conditions using input sizes of 1K, 10K, and 100K elements. Each dataset was tested with four different data arrangements: ascending, descending, nearly sorted, and random. Runtime measurements were collected and compared. Additionally, a Relative Execution Time Ratio (RETR) metric was introduced to provide a normalized and quantitative comparison of performance across languages. Results The experimental findings show clear performance differences among the programming languages. Go demonstrated the fastest runtimes across most scenarios, benefiting from its efficient compiled execution model. Java performed second-best, leveraging just-in-time (JIT) compilation and runtime optimizations. C and C++ showed moderate performance, influenced by compiler optimization levels and memory management mechanisms. PHP and Python exhibited significantly slower execution times, particularly for large and poorly ordered datasets, mainly due to interpreter overhead and runtime inefficiencies. The RETR metric effectively highlighted these relative performance gaps. Conclusion The study confirms that programming language choice significantly impacts real-world algorithm performance, even for well-understood algorithms like Insertion Sort. Compiled languages with efficient runtime optimizations generally outperform interpreted languages, especially for larger datasets. These results emphasize the importance of selecting appropriate programming languages for performance-critical applications and aligning algorithm implementation with both data characteristics and execution environments.

Similar Papers
  • Research Article

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

  • Jan 01, 2026
  • European Journal of Scientific Research and Reviews.
  • Md Islam +2
  • Book Chapter
  • Citations3

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

  • Jan 14, 2011
  • Dominik Strzaka +1
  • PDF
  • Research Article
  • Citations6

Analisis Algoritma Insertion Sort, Merge Sort Dan Implementasinya Dalam Bahasa Pemrograman C++

  • Nov 10, 2012
  • JURNAL INFOTEL - Informatika Telekomunikasi Elektronika
  • Arief Hendra Saptadi +1
  • Conference Article
  • Citations6

Comparing sorting algorithm complexity based on control flow structure

  • Nov 01, 2016
  • Reina Setiawan
  • Research Article
  • Citations55

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

  • Dec 28, 2022
  • Electronics
  • Ignas Plauska +2
  • Conference Article

Impact of compiler optimizations on voltage droops and reliability of an SMT, multi-core processor

  • Sep 19, 2012
  • Youngtaek Kim +4
  • Research Article

Some model driven software development approaches

  • Jan 01, 2021
  • Ingenious
  • Shaqir Sulaj
  • Conference Article
  • Citations163

TaintART

  • Oct 24, 2016
  • Mingshen Sun +2
  • Conference Article
  • Citations3

Generating Robust Parallel Programs via Model Driven Prediction of Compiler Optimizations for Non-determinism

  • Aug 17, 2020
  • Girish Mururu +3
  • Conference Article

Performance Evaluation of Machine Learning Applications Using WebAssembly Across Different Programming Languages

  • Jul 20, 2025
  • Sallar Khan +2
  • Conference Article
  • Citations70

Runtime optimizations for a Java DSM implementation

  • Jun 01, 2001
  • R Veldema +3
  • Conference Article
  • Citations48

Towards a Green Ranking for Programming Languages

  • Sep 21, 2017
  • Marco Couto +4
  • PDF
  • Research Article
  • Citations3

Design and Implementation of an Aspect-Oriented C Programming Language

  • Apr 29, 2024
  • Proceedings of the ACM on Programming Languages
  • Zhe Chen +2
  • Conference Article
  • Citations54

Can execution time describe accurately the energy consumption of mobile apps? an experiment in Android

  • Jun 01, 2014
  • Luis Corral +3
  • Research Article

A surprisingly simple Lua compiler—Extended version

  • Oct 01, 2022
  • Journal of Computer Languages
  • Hugo Musso Gualandi +1
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.