40 #include "../base/ver.h"
44 #include "../base/str.h"
47 #ifndef CHECK_INCLUDED
48 #include "../base/check.h"
52 #include "../rel/rel.h"
55 #ifndef RTEST_INCLUDED
59 #ifndef BENCH_INCLUDED
71 static const long TEST_MAGIC = 0x5445530AL;
87 int test_arg,
str_t test_name);
116 static void print_list();
160 bool (*Fun)(
test_c* test);
193 bool run_bench_static(
str_t name,
195 str_t file_name,
long expected_result);
204 void mem_statistics(
str_t headline);
207 void test_failed(
str_t msg);
210 void wrong_result(
str_t fun,
long result,
long expected_result);
213 void rtest_failed(
str_t msg,
int tuple_no,
int arity,
int c1,
int c2);
216 long max_time(
long realtime,
long cputime);
229 static bool set_1d(
test_c* test);
232 static bool set_1e(
test_c* test);
235 static bool set_1s(
test_c* test);
238 static bool set_2d(
test_c* test);
241 static bool set_2e(
test_c* test);
244 static bool set_2s(
test_c* test);
251 static bool bench_dblp_1(
test_c* test);
252 static bool bench_dblp_2(
test_c* test);
253 static bool bench_dblp_3(
test_c* test);
256 static bool bench_j1axy_1(
test_c* test);
257 static bool bench_j1axy_2(
test_c* test);
258 static bool bench_j1axy_3(
test_c* test);
259 static bool bench_j1axy_4(
test_c* test);
260 static bool bench_j1axy_5(
test_c* test);
261 static bool bench_j1axy_6(
test_c* test);
262 static bool bench_j1axy_7(
test_c* test);
263 static bool bench_j1axy_8(
test_c* test);
264 static bool bench_j1axy_9(
test_c* test);
267 static bool bench_tcff_1(
test_c* test);
268 static bool bench_tcff_2(
test_c* test);
269 static bool bench_tcff_3(
test_c* test);
270 static bool bench_tcff_4(
test_c* test);
271 static bool bench_tcff_5(
test_c* test);
274 static bool bench_tcbf_1(
test_c* test);
275 static bool bench_tcbf_2(
test_c* test);
276 static bool bench_tcbf_4(
test_c* test);
279 static bool bench_wine(
test_c* test);
286 static bool load_dblp(
test_c* test);
289 static bool load_tc(
test_c* test);
292 static bool load_tc_gen(
test_c* test);
298 static bool end_marker(
test_c* test);
325 #define TEST_NULL (static_cast<test_t>(0))
Abstract Superclass of Standard Benchmarks with load() and eval()
Abstract superclass for Standard Benchmarks with load() and eval() Methods.
Definition: bench.h:67
Superclass for Standard Tests of Relation-like Data Structures.
Abstract superclass for Standard Tests/Benchmarks of relation-like data structures with insert() and ...
Definition: rtest.h:81
#define CHECK_VALID(EX)
Definition: check.h:85
const char * str_t
Definition: str.h:41
#define STR_NULL
Definition: str.h:52