bench: calc: add support for google benchmark

* etc/bench.pl.in (&compiler): New, extracted from...
(&compile): here.
Don't link when using gbm.
(&calc_input): Don't make massive input for micro
benchmarks.
(&generate_grammar_calc): When using gbm, use api.prefix to avoid name
collisions.
Be ready to issue BENCHMARKS instead of a main.
(&bench): Rename as...
(&bench_with_timethese): this.
(&bench_with_gbenchmark): New.
(&bench): New.
Dispatch on these two.
This commit is contained in:
Akim Demaille
2020-03-17 08:07:28 +01:00
parent 788b1a6858
commit c0e8489605

File diff suppressed because one or more lines are too long