commit 1bff3db71fad0645d107816f65d770fbd1320490
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Sun May 8 01:51:42 2016 +0200
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Sun May 8 01:51:42 2016 +0200
benchmark-func: add option for more fine-grained benchmark
Signed-off-by: Mattias Andrée <maandree_AT_kth.se>
diff --git a/bench/benchmark-func.c b/bench/benchmark-func.c
index 7f4d093..50a2ad3 100644
--- a/bench/benchmark-func.c
+++ b/bench/benchmark-func.c
_AT_@ -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),)\
Received on Sun May 08 2016 - 01:51:52 CEST
This archive was generated by hypermail 2.3.0
: Sun May 08 2016 - 02:00:17 CEST