actually use the chosen backend in benchmark, was always PB_MIN
This commit is contained in:
parent
808d216145
commit
e73377fbda
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ HBenchmarkResults *h_benchmark__m(HAllocator* mm__, const HParser* parser, HPars
|
||||||
for (backend = PB_MIN; backend < PB_MAX; backend++) {
|
for (backend = PB_MIN; backend < PB_MAX; backend++) {
|
||||||
ret->results[backend].backend = backend;
|
ret->results[backend].backend = backend;
|
||||||
// Step 1: Compile grammar for given parser...
|
// Step 1: Compile grammar for given parser...
|
||||||
if (h_compile(parser, PB_MIN, NULL) == -1) {
|
if (h_compile(parser, backend, NULL) == -1) {
|
||||||
// backend inappropriate for grammar...
|
// backend inappropriate for grammar...
|
||||||
fprintf(stderr, "failed\n");
|
fprintf(stderr, "failed\n");
|
||||||
ret->results[backend].compile_success = false;
|
ret->results[backend].compile_success = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue