Port more bench to new infrzastructure

This commit is contained in:
Patrick Pelissier committed 2019-12-07 14:45:06 +01:00
1 parent 5cc2ac17d9
commit 00111e3e3c
14 files changed
+113 -137

No files matched your search

+10 -13
View File
@@ -185,21 +185,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", 1000000, 0, test_dict, 0},
{ 41, "dictBig", 1000000, 0, test_dict_big, 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("B-tree", 1000000, test_rbtree);
if (n == 40)
test_function("Dict", 1000000, test_dict);
if (n == 41)
test_function("DictBig", 1000000, test_dict_big);
if (n == 50)
test_function("Sort", 10000000, test_sort);
test("KLIB", numberof(table), table, argc, argv);
exit(0);
}