checkasm: Print benchmarks of C-only functions

This corresponds to commit 9278a14cf406f8edb5052c42b83750112bf5b515
in dav1d.

Omitting the C-only functions doesn't speed up benchmarking
anyway (as those has to be benchmarked before we know if we have
any corresponding assembly functions), and being able to benchmark
those functions without corresponding assembly can be valuable in
a number of cases.

Signed-off-by: Martin Storsjö <martin@martin.st>
master
Martin Storsjö 2 months ago
parent ee903c4786
commit 4b524649ff
  1. 8
      tests/checkasm/checkasm.c

@ -631,14 +631,13 @@ static inline double avg_cycles_per_call(const CheckasmPerf *const p)
static void print_benchs(CheckasmFunc *f)
{
if (f) {
print_benchs(f->child[0]);
/* Only print functions with at least one assembly version */
if (f->versions.cpu || f->versions.next) {
CheckasmFuncVersion *v = &f->versions;
const CheckasmPerf *p = &v->perf;
const double baseline = avg_cycles_per_call(p);
double decicycles;
print_benchs(f->child[0]);
do {
if (p->iterations) {
p = &v->perf;
@ -658,7 +657,6 @@ static void print_benchs(CheckasmFunc *f)
}
}
} while ((v = v->next));
}
print_benchs(f->child[1]);
}

Loading…
Cancel
Save