Added benchmark skeleton, and at least stubs for all of the necessary functions
This commit is contained in:
parent
8eececcac8
commit
d0d9a94fd0
10 changed files with 239 additions and 13 deletions
14
src/t_benchmark.c
Normal file
14
src/t_benchmark.c
Normal 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);
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue