public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] Benchtests: Increase benchmark iterations
@ 2024-01-12 16:09 Wilco Dijkstra
  0 siblings, 0 replies; only message in thread
From: Wilco Dijkstra @ 2024-01-12 16:09 UTC (permalink / raw)
  To: glibc-cvs

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=7c14d8a985416986256f68568313cdb36f559821

commit 7c14d8a985416986256f68568313cdb36f559821
Author: Wilco Dijkstra <wilco.dijkstra@arm.com>
Date:   Tue Jan 2 17:08:02 2024 +0000

    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>

Diff:
---
 benchtests/bench-libmvec-skeleton.c | 2 +-
 benchtests/bench-skeleton.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/benchtests/bench-libmvec-skeleton.c b/benchtests/bench-libmvec-skeleton.c
index d75519cb79..fa328ac932 100644
--- a/benchtests/bench-libmvec-skeleton.c
+++ b/benchtests/bench-libmvec-skeleton.c
@@ -29,7 +29,7 @@
 #include <bench-libmvec-arch.h>
 
 #include <bench-util.c>
-#define D_ITERS 10000
+#define D_ITERS 200000
 
 int
 main (int argc, char **argv)
diff --git a/benchtests/bench-skeleton.c b/benchtests/bench-skeleton.c
index 83060c9cfa..60add3f3f3 100644
--- a/benchtests/bench-skeleton.c
+++ b/benchtests/bench-skeleton.c
@@ -48,7 +48,7 @@ main (int argc, char **argv)
 
   memset (&runtime, 0, sizeof (runtime));
 
-  unsigned long iters = 1000;
+  unsigned long iters = 2000;
 
 #ifdef BENCH_INIT
   BENCH_INIT ();

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-01-12 16:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-12 16:09 [glibc] Benchtests: Increase benchmark iterations Wilco Dijkstra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).