Added benchmark skeleton, and at least stubs for all of the necessary functions

This commit is contained in:
Dan Hirsch 2012-11-02 17:16:53 -04:00
parent 8eececcac8
commit d0d9a94fd0
10 changed files with 239 additions and 13 deletions

14
src/t_benchmark.c Normal file
View file

@ -0,0 +1,14 @@
// At this point, this is just a compile/link test.
#include "hammer.h"
HParserTestcase testcases[] = {
{NULL, 0, NULL}
};
void test_benchmark_1() {
HParser *parser = NULL; // TODO: fill this in.
HBenchmarkResults *res = h_benchmark(parser, testcases);
h_benchmark_report(stderr, res);
}