diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-08-03 10:29:09 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-08-03 10:29:09 +0000 |
commit | 722a93c626d4033abbb221f44238fd7e25f99b0d (patch) | |
tree | 3cc42f7c84a90e4e9eb3ce64a2b804aba43e6b53 /src/datastore/perf_datastore_api.c | |
parent | 1b49daf277669a740f2a0a2dc78dd637832b552f (diff) | |
download | gnunet-722a93c626d4033abbb221f44238fd7e25f99b0d.tar.gz gnunet-722a93c626d4033abbb221f44238fd7e25f99b0d.zip |
-reduce autostarting for tests, reduce timeouts
Diffstat (limited to 'src/datastore/perf_datastore_api.c')
-rw-r--r-- | src/datastore/perf_datastore_api.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index 082b583c6..c3dbad00a 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c | |||
@@ -407,11 +407,22 @@ run_continuation (void *cls, | |||
407 | "DATASTORE-%s", | 407 | "DATASTORE-%s", |
408 | plugin_name); | 408 | plugin_name); |
409 | if ((crc->i == ITERATIONS) && (stored_ops > 0)) | 409 | if ((crc->i == ITERATIONS) && (stored_ops > 0)) |
410 | { | ||
410 | GAUGER (gstr, | 411 | GAUGER (gstr, |
411 | "PUT operation duration", | 412 | "PUT operation duration", |
412 | GNUNET_TIME_absolute_get_duration (start_time).rel_value_us / 1000LL / | 413 | GNUNET_TIME_absolute_get_duration (start_time).rel_value_us / 1000LL / |
413 | stored_ops, | 414 | stored_ops, |
414 | "ms/operation"); | 415 | "ms/operation"); |
416 | fprintf (stdout, | ||
417 | "\nPUT performance: %s for %llu operations\n", | ||
418 | GNUNET_STRINGS_relative_time_to_string (GNUNET_TIME_absolute_get_duration (start_time), | ||
419 | GNUNET_YES), | ||
420 | stored_ops); | ||
421 | fprintf (stdout, | ||
422 | "PUT performance: %llu ms/operation\n", | ||
423 | GNUNET_TIME_absolute_get_duration (start_time).rel_value_us / 1000LL / | ||
424 | stored_ops); | ||
425 | } | ||
415 | GNUNET_DATASTORE_disconnect (datastore, | 426 | GNUNET_DATASTORE_disconnect (datastore, |
416 | GNUNET_YES); | 427 | GNUNET_YES); |
417 | GNUNET_free (crc); | 428 | GNUNET_free (crc); |
@@ -493,7 +504,7 @@ run (void *cls, | |||
493 | 0, 0, 0, | 504 | 0, 0, 0, |
494 | GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_SECONDS), | 505 | GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_SECONDS), |
495 | 0, 1, | 506 | 0, 1, |
496 | GNUNET_TIME_UNIT_MINUTES, | 507 | TIMEOUT, |
497 | &run_tests, crc)) | 508 | &run_tests, crc)) |
498 | { | 509 | { |
499 | FPRINTF (stderr, | 510 | FPRINTF (stderr, |