--- /dev/null
+#ifndef _CDS_STRESS_TEST_UTIL_H
+#define _CDS_STRESS_TEST_UTIL_H
+
+#include <cds_test/stress_test.h>
+#include <iostream>
+
+typedef unsigned long long ullong;
+
+#define GetConfig(field) s_n##field = cfg.get_size_t(#field, s_n##field)
+
+#define GetConfigExpected(field, expected) \
+ s_n##field = cfg.get_size_t(#field, s_n##field); \
+ if (s_n##field < (expected)) { \
+ s_n##field = expected; \
+ }
+
+#define PrintConfig(field) \
+ std::cout << #field << "=" << s_n##field << std::endl
+
+#define GetConfigNonZeroExpected(field, expected) \
+ s_n##field = cfg.get_size_t(#field, s_n##field); \
+ if (s_n##field == 0) { \
+ s_n##field = expected; \
+ }
+
+#ifdef PERFORMANCE
+#define DEBUG(stmt)
+#else
+#define DEBUG(stmt) stmt
+#endif
+
+#endif