mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Benchtests: Increase benchmark iterations
Increase benchmark iterations for math and vector math functions to improve timing accuracy. Vector math benchmarks now take 1-3 seconds on a modern CPU. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
9fd2ceb55d
commit
7c14d8a985
2 changed files with 2 additions and 2 deletions
benchtests
|
@ -29,7 +29,7 @@
|
||||||
#include <bench-libmvec-arch.h>
|
#include <bench-libmvec-arch.h>
|
||||||
|
|
||||||
#include <bench-util.c>
|
#include <bench-util.c>
|
||||||
#define D_ITERS 10000
|
#define D_ITERS 200000
|
||||||
|
|
||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
|
|
|
@ -48,7 +48,7 @@ main (int argc, char **argv)
|
||||||
|
|
||||||
memset (&runtime, 0, sizeof (runtime));
|
memset (&runtime, 0, sizeof (runtime));
|
||||||
|
|
||||||
unsigned long iters = 1000;
|
unsigned long iters = 2000;
|
||||||
|
|
||||||
#ifdef BENCH_INIT
|
#ifdef BENCH_INIT
|
||||||
BENCH_INIT ();
|
BENCH_INIT ();
|
||||||
|
|
Loading…
Add table
Reference in a new issue