Branch mispredictions don't affect mergesort

A Elmasry, J Katajainen, M Stenmark - … 2012, Bordeaux, France, June 7-9 …, 2012 - Springer
… the effect of branch mispredictions on the behaviour of mergesort. By decoupling element
comparisons from branches, we can avoid most negative effects caused by branch mispre…

Blockquicksort: How branch mispredictions don't affect quicksort

S Edelkamp, A Weiß - arXiv preprint arXiv:1604.06697, 2016 - arxiv.org
… number of branch misses and … branch mispredictions. They call such programs lean. In
particular, they present variants of Mergesort and Quicksort suffering only very little from branch

Tradeoffs between branch mispredictions and comparisons for sorting algorithms

GS Brodal, G Moruz - Algorithms and Data Structures: 9th International …, 2005 - Springer
Branch mispredictions is an important factor affecting the running time in practice. In this paper
we consider tradeoffs between the number of branch mispredictions … Multiway MergeSort

Blockquicksort: Avoiding branch mispredictions in quicksort

S Edelkamp, A Weiß - Journal of Experimental Algorithmics (JEA), 2019 - dl.acm.org
branch mispredictions. They call such programs lean. In particular, they present variants of
Mergesort and Quicksort suffering only very little from branch … has a negative effect on runtime…

An experimental study of sorting and branch prediction

P Biggar, N Nash, K Williams, D Gregg - Journal of Experimental …, 2008 - dl.acm.org
… makes their branches highly unpredictable, that the unpredictability of shellsort’s branches
im… cache optimizations have little effect on mergesort’s branch mispredictions. We find also …

[PDF][PDF] Sorting in the presence of branch prediction and caches

P Biggar, D Gregg - TCD-CS, Universidade de Dublin, Irlanda, 2005 - Citeseer
… causes the fewest branch mispredictions of any comparison-… have a large impact on the
predictability of branches, and … We also rewrote base mergesort far more cleanly, with the results …

[PDF][PDF] When merging and branch predictors collide.

O Green - IA3@ SC, 2014 - researchgate.net
… is not considered and this too can have an impact on the performance as we show in this
work. … Therefore, the branch mispredictions per element for the entire merge-sort will be 1/2·log(…

Improving quicksort performance by optimizing branch prediction

J Peeters, J Haase - 2022 IEEE Asia-Pacific Conference on …, 2022 - ieeexplore.ieee.org
… Some optimisations, however, can have an adverse effect on … [1], while another paper will
look at mergesort [2] and shares … number of conditional branches, branch mispredictions, CPU …

Enabling branch-mispredict level parallelism by selectively flushing instructions

S Eyerman, W Heirman, S Van den Steen… - MICRO-54: 54th Annual …, 2021 - dl.acm.org
… we still want to support in-order commit to avoid impact on off-… on merge sort (ms) [25], which
also suffers from a high branchMerge sort is particularly fit for parallelization, and thus also …

Worst-case efficient sorting with quickmergesort

S Edelkamp, A Wei - 2019 Proceedings of the Twenty-First Workshop on …, 2019 - SIAM
… For the Mergesort part we use standard (top-down) Mergesort… variant, let us look at the costs
of Mergesort with imbalanced … Branch mispredictions dont affect mergesort. In SEA, pages …