[PATCH] matrix-test: fix units in report

Pekka Paalanen ppaalanen at gmail.com
Fri Sep 5 01:34:55 PDT 2014


On Thu,  4 Sep 2014 14:31:30 -0500
Derek Foreman <derekf at osg.samsung.com> wrote:

> The matrix-test speed tests are calculated in ns but some printed the
> units as us
> ---
>  tests/matrix-test.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/matrix-test.c b/tests/matrix-test.c
> index 7b414c9..6bf4ba3 100644
> --- a/tests/matrix-test.c
> +++ b/tests/matrix-test.c
> @@ -288,7 +288,7 @@ test_loop_speed_matrixvector(void)
>  	}
>  	t = read_timer();
>  
> -	printf("%lu iterations in %f seconds, avg. %.1f us/iter.\n",
> +	printf("%lu iterations in %f seconds, avg. %.1f ns/iter.\n",
>  	       count, t, 1e9 * t / count);
>  }
>  
> @@ -315,7 +315,7 @@ test_loop_speed_inversetransform(void)
>  	}
>  	t = read_timer();
>  
> -	printf("%lu iterations in %f seconds, avg. %.1f us/iter.\n",
> +	printf("%lu iterations in %f seconds, avg. %.1f ns/iter.\n",
>  	       count, t, 1e9 * t / count);
>  }
>  

Whoa :-O

That's been there since I first got that test program merged upstream.
Nice!

Pushed.


Thanks,
pq


More information about the wayland-devel mailing list