[hackers] [libgrapheme] Reduce number of iterations for grapheme-performance-test || Laslo Hunhold

From: <git_AT_suckless.org>
Date: Tue, 14 Dec 2021 16:26:39 +0100 (CET)

commit 687329edd3c31c2b2f89af79fd2ff5107bf2e31f
Author: Laslo Hunhold <dev_AT_frign.de>
AuthorDate: Tue Dec 14 16:25:16 2021 +0100
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Tue Dec 14 16:25:16 2021 +0100

    Reduce number of iterations for grapheme-performance-test
    
    1000 iterations are usually enough to get good results. There's no need
    to run it longer than that.
    
    Signed-off-by: Laslo Hunhold <dev_AT_frign.de>

diff --git a/test/grapheme-performance.c b/test/grapheme-performance.c
index 050fbaf..05035bd 100644
--- a/test/grapheme-performance.c
+++ b/test/grapheme-performance.c
_AT_@ -9,7 +9,7 @@
 #include "../gen/grapheme-test.h"
 
 #define LEN(x) (sizeof(x) / sizeof(*(x)))
-#define NUM_ITERATIONS 10000
+#define NUM_ITERATIONS 1000
 
 static double
 time_diff(struct timespec *a, struct timespec *b)
Received on Tue Dec 14 2021 - 16:26:39 CET

This archive was generated by hypermail 2.3.0 : Tue Dec 14 2021 - 16:36:31 CET