|
| |
Research Article Online Published: 27 Feb 2026
| | |
Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms
Md Sydul Islam, Pranto Halder.
 | | | | 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. Key words: Insertion Sort, Comparative Performance Analysis, Programming Languages, Algorithm Benchmarking, Runtime Comparison, Sorting Algorithms, Compiled vs Interpreted Languages, Language Efficiency, Experimental Evaluation, Relative Execution Time Ratio (RETR).
| |
| |
| How to Cite this Article | Pubmed Style
Islam MS, Halder P. Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms. Eu J Sci Res Rev. 2026; 4(1): 53-62. doi:10.5455/EJSRR.20251025082011
Web Style
Islam MS, Halder P. Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms. https://www.wisdomgale.com/ejsrr/?mno=292557 [Access: March 04, 2026]. doi:10.5455/EJSRR.20251025082011
AMA (American Medical Association) StyleIslam MS, Halder P. Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms. Eu J Sci Res Rev. 2026; 4(1): 53-62. doi:10.5455/EJSRR.20251025082011
Vancouver/ICMJE StyleIslam MS, Halder P. Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms. Eu J Sci Res Rev. (2026), [cited March 04, 2026]; 4(1): 53-62. doi:10.5455/EJSRR.20251025082011
Harvard StyleIslam, M. S. & Halder, . P. (2026) Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms. Eu J Sci Res Rev, 4 (1), 53-62. doi:10.5455/EJSRR.20251025082011
Turabian StyleIslam, Md Sydul, and Pranto Halder. 2026. Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms. European Journal of Scientific Research and Reviews, 4 (1), 53-62. doi:10.5455/EJSRR.20251025082011
Chicago StyleIslam, Md Sydul, and Pranto Halder. "Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms." European Journal of Scientific Research and Reviews 4 (2026), 53-62. doi:10.5455/EJSRR.20251025082011
MLA (The Modern Language Association) StyleIslam, Md Sydul, and Pranto Halder. "Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms." European Journal of Scientific Research and Reviews 4.1 (2026), 53-62. Print. doi:10.5455/EJSRR.20251025082011
APA (American Psychological Association) StyleIslam, M. S. & Halder, . P. (2026) Unifying Algorithmic Performance: Insertion Sort Across Diverse Programming Paradigms. European Journal of Scientific Research and Reviews, 4 (1), 53-62. doi:10.5455/EJSRR.20251025082011
|
|