Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

radix sort

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 3.03 sec, absolute running time: 1.46 sec, cpu time: 1.75 sec, memory peak: 24 Mb, absolute service time: 4,54 sec  
fork mode |  history
Timings are in cycles per element.
n                            |      16|      30|      57|     108|     205|     389|     739|    1404|    2667
-----------------------------+--------+--------+--------+--------+--------+--------+--------+--------+--------
std::sort                    |    12  |    13  |    17  |    21  |    24  |   112  |    45  |    96  |   120  
radix_sort_stable            |    13  |    16  |    18  |    19  |    24  |    18  |    17  |    26  |    22  
radix_sort_inplace           |    14  |    15  |    18  |    20  |    34  |    28  |    29  |    33  |    45  

n                            |    5067|    9627|   18291|   34752|   66028|  125453|  238360|  452884|  860479
-----------------------------+--------+--------+--------+--------+--------+--------+--------+--------+--------
std::sort                    |   136  |   143  |   155  |   171  |   186  |   191  |   186  |   203  |   211  
radix_sort_stable            |    22  |    22  |    29  |    29  |    30  |    30  |    31  |    33  |    39  
radix_sort_inplace           |    44  |    48  |    51  |    73  |    76  |    73  |    68  |    70  |    76  


    
                
λ
.NET NoSQL database for rapid development