about summary refs log tree commit diff
path: root/benchtests/bench-malloc-thread.c
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2019-04-24 15:38:49 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2019-04-24 15:38:49 +0100
commitfe92a91f1e713ba4951bc6e6162f8803dc76b816 (patch)
tree072179f961041e1fa8d82e1969b75dcac1dda149 /benchtests/bench-malloc-thread.c
parentf9b645b4b0a10c43753296ce3fa40053fa44606a (diff)
downloadglibc-fe92a91f1e713ba4951bc6e6162f8803dc76b816.tar.gz
glibc-fe92a91f1e713ba4951bc6e6162f8803dc76b816.tar.xz
glibc-fe92a91f1e713ba4951bc6e6162f8803dc76b816.zip
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.
Diffstat (limited to 'benchtests/bench-malloc-thread.c')
-rw-r--r--benchtests/bench-malloc-thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchtests/bench-malloc-thread.c b/benchtests/bench-malloc-thread.c
index 52261425b0..9d7dcf26b7 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