[prev in list] [next in list] [prev in thread] [next in thread]
List: glibc-cvs
Subject: [glibc] Reduce benchtests time
From: Wilco Dijkstra <wilco () sourceware ! org>
Date: 2019-04-24 14:40:51
Message-ID: 20190424144051.34080.qmail () sourceware ! org
[Download RAW message or body]
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=fe92a91f1e713ba4951bc6e6162f8803dc76b816
commit fe92a91f1e713ba4951bc6e6162f8803dc76b816
Author: Wilco Dijkstra <wdijkstr@arm.com>
Date: Wed Apr 24 15:38:49 2019 +0100
Reduce benchtests time
Reduce the total time taken by benchtests. The malloc thread test takes 4
minutes to run which is significantly more than most other tests. Reduce
this to a more reasonable 40 seconds. The math tests take 10 seconds each,
eventhough all they do is loop on the same input. Anything more than 1
second runtime is way overkill, so set the limit to 1 second.
* benchtests/Makefile (BENCH_DURATION): Set to 1 second.
* benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
Diff:
---
ChangeLog | 5 +++++
benchtests/Makefile | 4 ++--
benchtests/bench-malloc-thread.c | 2 +-
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 5429f85..f36f62f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-04-24 Wilco Dijkstra <wdijkstr@arm.com>
+
+ * benchtests/Makefile (BENCH_DURATION): Set to 1 second.
+ * benchtests/bench-malloc-thread.c (BENCH_DURATION): Set to 10 seconds.
+
2019-04-24 Mike Frysinger <vapier@gentoo.org>
[BZ #18465]
diff --git a/benchtests/Makefile b/benchtests/Makefile
index cdc8948..c9dca7e 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -120,9 +120,9 @@ binaries-bench := $(addprefix $(objpfx)bench-,$(bench))
binaries-benchset := $(addprefix $(objpfx)bench-,$(benchset))
binaries-bench-malloc := $(addprefix $(objpfx)bench-,$(bench-malloc))
-# The default duration: 10 seconds.
+# The default duration: 1 seconds.
ifndef BENCH_DURATION
-BENCH_DURATION := 10
+BENCH_DURATION := 1
endif
CPPFLAGS-nonlib += -DDURATION=$(BENCH_DURATION) -D_ISOMAC
diff --git a/benchtests/bench-malloc-thread.c b/benchtests/bench-malloc-thread.c
index 5226142..9d7dcf2 100644
--- a/benchtests/bench-malloc-thread.c
+++ b/benchtests/bench-malloc-thread.c
@@ -31,7 +31,7 @@
#include "json-lib.h"
/* Benchmark duration in seconds. */
-#define BENCHMARK_DURATION 60
+#define BENCHMARK_DURATION 10
#define RAND_SEED 88
#ifndef NUM_THREADS
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic