This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] format benchtest outputs.
- From: Will Newton <will dot newton at linaro dot org>
- To: Ondřej Bílka <neleai at seznam dot cz>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Fri, 6 Sep 2013 09:09:03 +0100
- Subject: Re: [PATCH] format benchtest outputs.
- Authentication-results: sourceware.org; auth=none
- References: <20130906075800 dot GA21208 at domone dot kolej dot mff dot cuni dot cz>
On 6 September 2013 08:58, OndÅej BÃlka <neleai@seznam.cz> wrote:
> Hi,
>
> This changes format specifier in benchtest to have fixed decimal point
> which makes results easier to read.
>
> OK to commit?
>
> * benchtests/bench-timing.h: Format outputs.
> diff --git a/benchtests/bench-timing.h b/benchtests/bench-timing.h
> index 009813b..a6963ea 100644
> --- a/benchtests/bench-timing.h
> +++ b/benchtests/bench-timing.h
> @@ -72,4 +72,4 @@ typedef uint64_t timing_t;
> #endif
>
> #define TIMING_PRINT_MEAN(d_total_s, d_iters) \
> - printf ("\t%g", (d_total_s) / (d_iters))
> + printf (" %10.2f", (d_total_s) / (d_iters))
Looks good to me.
--
Will Newton
Toolchain Working Group, Linaro