Benchmark is actually broken right now, for mysterious double-free related reasons. I will dig into this tomorrow.

This commit is contained in:
Meredith L. Patterson 2012-11-08 01:36:19 -05:00
parent 771de6f98b
commit c24044230b
2 changed files with 40 additions and 0 deletions

View file

@ -125,7 +125,25 @@ typedef struct HParserTestcase_ {
char* output_unambiguous;
} HParserTestcase;
typedef struct HCaseResult_ {
bool success;
union {
const char* actual_results; // on failure, filled in with the results of h_write_result_unamb
size_t parse_time; // on success, filled in with time for a single parse, in nsec
};
} HCaseResult;
typedef struct HBackendResults_ {
HParserBackend backend;
bool compile_success;
size_t n_testcases;
size_t failed_testcases; // actually a count...
HCaseResult *cases;
} HBackendResults;
typedef struct HBenchmarkResults_ {
size_t len;
HBackendResults *results;
} HBenchmarkResults;
// }}}