-first micro benchmark
This commit is contained in:
parent
ffbc537fe7
commit
94a80b37d5
@ -98,9 +98,9 @@ run (void *cls)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
for (unsigned int i = 0; i< 6;i++)
|
||||
for (unsigned int i = 0; i< 7; i++)
|
||||
{
|
||||
static unsigned int batches[]={1, 1, 2, 4, 16, 64};
|
||||
static unsigned int batches[] = {1, 1, 0, 2, 4, 16, 64};
|
||||
const char *sndr = "payto://x-taler-bank/localhost:8080/1";
|
||||
struct TALER_Amount value;
|
||||
unsigned int batch_size = batches[i];
|
||||
@ -108,10 +108,10 @@ run (void *cls)
|
||||
struct GNUNET_TIME_Relative duration;
|
||||
struct TALER_ReservePublicKeyP reserve_pub;
|
||||
|
||||
now = GNUNET_TIME_timestamp_get();
|
||||
GNUNET_assert (GNUNET_OK ==
|
||||
TALER_string_to_amount (CURRENCY ":1.000010",
|
||||
&value));
|
||||
now = GNUNET_TIME_timestamp_get ();
|
||||
plugin->start (plugin->cls,
|
||||
"test_by_exchange_j");
|
||||
for (unsigned int k = 0; k<batch_size; k++)
|
||||
@ -128,7 +128,7 @@ run (void *cls)
|
||||
}
|
||||
plugin->commit (plugin->cls);
|
||||
duration = GNUNET_TIME_absolute_get_duration (now.abs_time);
|
||||
fprintf (stderr,
|
||||
fprintf (stdout,
|
||||
"for a batchsize equal to %d it took %s\n",
|
||||
batch_size,
|
||||
GNUNET_STRINGS_relative_time_to_string (duration,
|
||||
|
Loading…
Reference in New Issue
Block a user