This is from today’s meeting, a simple “priority level” for the benchmark framework.
Will allow us to run certain benchmarks while skip non-prioritized ones in make check.
By default, bench_bitcoin will run all the benchmarks. make checkwill only run the high priority ones,
and have marked all the existent benchmarks as “high priority” to retain the current behavior.
Could test it by modifying any benchmark priority to something different from “high”, and
run bench_bitcoin -priority-level=high and/or bench_bitcoin -priority-level=medium,low
(the first command will skip the modified bench while the second one will include it).
Note: the second commit could be avoided by having a default arg value for the priority
level but.. an explicit set in every BENCHMARK macro call makes it less error-prone.