Port all benchs to new infrastructure

This commit is contained in:
Patrick Pelissier committed 2019-12-07 19:21:21 +01:00
1 parent 00111e3e3c
commit c60d59cb7a
12 files changed
+78 -96

No files matched your search

+11 -15
View File
@@ -162,22 +162,18 @@ static void test_sort(size_t n)
/********************************************************************************************/
const config_func_t table[] = {
{ 10, "List", 10000000, 0, test_list, 0},
{ 20, "Array", 100000000, 0, test_array, 0},
{ 30, "Rbtree", 1000000, 0, test_rbtree, 0},
{ 40, "dict(m)", 1000000, 0, test_dict1, 0},
{ 41, "dictBig", 1000000, 0, test_dict_big, 0},
{ 42,"dict(u)", 1000000, 0, test_dict2, 0},
{ 50, "Sort",10000000, 0, test_sort, 0}
};
int main(int argc, const char *argv[])
{
int n = (argc > 1) ? atoi(argv[1]) : 0;
if (n == 10)
test_function("List",10000000, test_list);
if (n == 20)
test_function("Array", 100000000, test_array);
if (n == 30)
test_function("Rbtree", 1000000, test_rbtree);
if (n == 40)
test_function("Dict(m)", 1000000, test_dict1);
if (n == 42)
test_function("Dict(u)", 1000000, test_dict2);
if (n == 41)
test_function("DictBig", 1000000, test_dict_big);
if (n == 50)
test_function("Sort", 10000000, test_sort);
test("QT", numberof(table), table, argc, argv);
exit(0);
}