diff options
author | Wilco Dijkstra <wdijkstr@arm.com> | 2019-04-24 15:38:49 +0100 |
---|---|---|
committer | Wilco Dijkstra <wdijkstr@arm.com> | 2019-04-24 15:38:49 +0100 |
commit | fe92a91f1e713ba4951bc6e6162f8803dc76b816 (patch) | |
tree | 072179f961041e1fa8d82e1969b75dcac1dda149 /benchtests/Makefile | |
parent | memusagestat: use local glibc when linking [BZ #18465] (diff) | |
download | glibc-fe92a91f1e713ba4951bc6e6162f8803dc76b816.tar.gz glibc-fe92a91f1e713ba4951bc6e6162f8803dc76b816.tar.bz2 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/Makefile')
-rw-r--r-- | benchtests/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile index cdc89488d6..c9dca7e011 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 |