commit 1bff3db71fad0645d107816f65d770fbd1320490
parent 5709039320d9877b3b7307258bdacdeb2ea38a6a
Author: Mattias Andrée <maandree@kth.se>
Date: Sun, 8 May 2016 01:51:42 +0200
benchmark-func: add option for more fine-grained benchmark
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat:
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/bench/benchmark-func.c b/bench/benchmark-func.c
@@ -145,9 +145,15 @@ gettime(size_t m)
(void) bs;\
}
-#define FAST1D() 0, 0, 0, 0, 0, 0, 0, 0, 1000, M_MAX
-#define FAST2D(P) 1, 4097, 64, 0, 0, 0, P, 0, 1000, M_MAX
-#define SLOW2D(P) 1, 4097, 64, 0, 0, 0, P, 0, 10, 20
+#if defined(FINE_GRAINED)
+# define FAST1D() 0, 0, 0, 0, 0, 0, 0, 0, 1000, M_MAX
+# define FAST2D(P) 1, 4096, 1, 0, 0, 0, P, 0, 1000, M_MAX
+# define SLOW2D(P) 1, 4096, 1, 0, 0, 0, P, 0, 10, 20
+#else
+# define FAST1D() 0, 0, 0, 0, 0, 0, 0, 0, 1000, M_MAX
+# define FAST2D(P) 1, 4097, 64, 0, 0, 0, P, 0, 1000, M_MAX
+# define SLOW2D(P) 1, 4097, 64, 0, 0, 0, P, 0, 10, 20
+#endif
#define LIST_1D_FUNCTIONS\
X(pos_zseti, FAST1D(), zseti(temp, 1000000000LL),)\