arrow
Return

Performance evaluation of GPU-based parallel sorting algorithms

delete2026-02-03
delete0
PRE
AI
M
Mohammed Alaa Ala’anzy *
N
Nurdaulet Tolendi
B
Baizhan Baubek
A
Abdulmohsen Algarni
DOI:10.1371/journal.pone.0342167delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Sorting can be approached in two main ways: sequentially and in parallel. In sequential sorting, data is processed in a single-threaded manner, which can be slow for large datasets. However, parallel sorting divides the task across multiple processing units, enabling faster results by processing data simultaneously. Furthermore, Compute Unified Device Architecture (CUDA) technology enables developers to leverage GPU power for general-purpose parallel computing, significantly accelerating tasks like sorting. This paper investigates the GPU-based parallelization of merge sort (MS), quick sort (QS), bubble sort (BS), radix top-k selection sort (RS), and slow sort (SS) presenting optimized algorithms designed for efficient sorting of large datasets using modern GPUs. The primary objective is to evaluate the performance of these algorithms on GPUs utilizing CUDA, with a focus on analyzing both parallel time complexity and space complexity across various data types. Experiments are conducted on four dataset scenarios: randomly generated data, reverse-sorted data, already-sorted data, and nearly-sorted data. Also, the performance of GPU-accelerated implementations is compared with their sequential counterparts to assess improvements in computational efficiency and scalability. Earlier GPU-based generations of this type typically achieved acceleration rates between 2x and 9x over scalar CPU code. With newer GPU enhancements, including parallel-aware primitives and radix- or merge-optimized operations, acceleration rates have seen significant improvement. Our experiments indicate that Radix Sort based on GPUs achieves a significant speedup of approximately 50x (sequential: 240.8 ms, parallel: 4.83 ms) on 10 million random sort elements. Quick Sort and Merge Sort have 97x and 103x speedups, respectively (Quick: 1461.97 ms vs. 15.1 ms; Merge: 2212.33 ms vs. 21.4 ms). Bubble Sort, while significantly improving in parallel (123,321.9 ms to 7377.8 ms for an approximate to 17x improvement), is considerably worse overall. Slow Sort demonstrates a moderate but consistent acceleration, reducing execution time from 74.07 ms in the sequential version to 3.99 ms on the GPU, yielding an approximate to 18.6x speedup. These experimental findings confirm that the new single-GPU implementations can get speedups ranging from 17x to over 100x, surpassing the typical gains reported in previous generations and comparable to or over rates of acceleration reported for cutting-edge parallel sorting algorithms in recent studies.
Keywords:
GPU-based parallel sorting
CUDA
merge sort
quick sort
radix sort

Journal

PLoS One cover
PLoS One
IF:
2.6
Papers:
2.6W
Citations:
81.6W

Organization

K
king khalid university
Scholars:
1.7K
Papers: 1.4K
Citations: 0
Cited Papers

Cited Papers

RadiK: Scalable and Optimized GPU-Parallel Radix Top-K Selection
err2024-05-30
err0
PREAI
errLi,Yifei; Zhou,Bole; Zhang,Jiejing; Wei,Xuechao; Li,Yinghan; Chen,Yingda
errShare
errSave
errShare
errSave
Design and Evaluation of a Low-Power Wide-Area Network (LPWAN)-Based Emergency Response System for Individuals with Special Needs in Smart Buildings
errSENSORS
IF3.5
err2024-05-26
err4
errOAAI
errSafi, Habibullah; Jehangiri, Ali Imran; Ahmad, Zulfiqar; Ala'anzy, Mohammed Alaa; Alramli, Omar Imhemed; Algarni, Abdulmohsen
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
On the Performance of Mean-Based Sort for Large Data Sets
err2021-01-01
err4
errOAAI
errMoghaddam, Shahriar Shirvani; Moghaddam, Kiaksar Shirvani
errShare
errSave
Comparison based sorting for systems with multiple GPUs
err2013-03-16
err0
PREAI
errIvan Tanasic; Lluís Vilanova; Marc Jordà; Javier Cabezas; Isaac Gelado; Nacho Navarro; Wen-mei Hwu
errShare
errSave
researcher View more