*/
#define MAX_SIZE 1024LL * 1024 * 128
-#define ITERATIONS 10
+#define ITERATIONS 2
/**
* Number of put operations equivalent to 1/10th of MAX_SIZE
struct GNUNET_DATASTORE_PluginFunctions * api;
enum RunPhase phase;
unsigned int cnt;
+ unsigned int iter;
};
GNUNET_break (0);
crc->phase = RP_ERROR;
}
- crc->phase++;
- crc->cnt = 0;
- crc->start = GNUNET_TIME_absolute_get ();
+ else
+ {
+ crc->phase++;
+ crc->cnt = 0;
+ crc->start = GNUNET_TIME_absolute_get ();
+ }
GNUNET_SCHEDULER_add_now (&test, crc);
return GNUNET_OK;
}
(unsigned int) PUT_10);
GAUGER (category, buf, crc->end.abs_value - crc->start.abs_value, "ms");
memset (hits, 0, sizeof (hits));
- crc->phase++;
+ if (++crc->iter == ITERATIONS)
+ crc->phase++;
+ else
+ crc->phase = RP_PUT;
crc->cnt = 0;
crc->start = GNUNET_TIME_absolute_get ();
}
struct NextRequestClosure *nrc;
nrc = GNUNET_malloc (sizeof (struct NextRequestClosure));
+ nrc->total = UINT32_MAX;
nrc->btype = htonl ((uint32_t) type);
nrc->plugin = plugin;
nrc->iter = iter;
rc.iter_cls = iter_cls;
nrc = GNUNET_malloc (sizeof (struct NextRequestClosure));
nrc->one_shot = GNUNET_YES;
+ nrc->total = 1;
nrc->plugin = plugin;
nrc->iter = &repl_iter;
nrc->iter_cls = &rc;
btime = GNUNET_htonll (GNUNET_TIME_absolute_get ().abs_value);
nrc = GNUNET_malloc (sizeof (struct NextRequestClosure));
nrc->one_shot = GNUNET_YES;
+ nrc->total = 1;
nrc->plugin = plugin;
nrc->iter = iter;
nrc->iter_cls = iter_cls;