with -g it seems there is some error actually...
This commit is contained in:
parent
4436c79821
commit
880fb7e991
8
ypsu.cpp
8
ypsu.cpp
@ -510,8 +510,8 @@ void measure_single(int n) {
|
|||||||
int main(void) {
|
int main(void) {
|
||||||
//int n = 100000000;
|
//int n = 100000000;
|
||||||
//int n = 10000000;
|
//int n = 10000000;
|
||||||
//int n = 1000000;
|
int n = 1000000;
|
||||||
int n = 100000;
|
//int n = 100000;
|
||||||
//int n = 10000;
|
//int n = 10000;
|
||||||
//int n = 100;
|
//int n = 100;
|
||||||
//int n = 10;
|
//int n = 10;
|
||||||
@ -574,10 +574,12 @@ int main(void) {
|
|||||||
measure(inputtype, "magbuck2", [&] { magyar_bucket_sort2(&w[0], w.size()); });
|
measure(inputtype, "magbuck2", [&] { magyar_bucket_sort2(&w[0], w.size()); });
|
||||||
assert(w == expected);
|
assert(w == expected);
|
||||||
*/
|
*/
|
||||||
//w = {10, 20, 5, 200, 42, 41, 43, 5};
|
/*
|
||||||
w = v;
|
w = v;
|
||||||
|
//w = {10, 20, 5, 200, 42, 41, 43, 5};
|
||||||
measure(inputtype, "qsmine", [&] { thier_quicksort(&w[0], w.size()); });
|
measure(inputtype, "qsmine", [&] { thier_quicksort(&w[0], w.size()); });
|
||||||
assert(w == expected);
|
assert(w == expected);
|
||||||
|
*/
|
||||||
w = v;
|
w = v;
|
||||||
measure(inputtype, "thier", [&] { thiersort_uintkey8(&w[0], w.size()); });
|
measure(inputtype, "thier", [&] { thiersort_uintkey8(&w[0], w.size()); });
|
||||||
if(w != expected) {
|
if(w != expected) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user