diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-07-19 12:49:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-07-19 12:49:44 +0000 |
commit | e17900c6274112d16a629efb84e9c751cbaa9a5e (patch) | |
tree | 9b9175a8c8785b6d27fee111763d68de6154b587 /src/datastore/perf_datastore_api.c | |
parent | 8de34260292a2e6f7bb980dcefd8d95f5763ad25 (diff) | |
download | gnunet-e17900c6274112d16a629efb84e9c751cbaa9a5e.tar.gz gnunet-e17900c6274112d16a629efb84e9c751cbaa9a5e.zip |
termiante
Diffstat (limited to 'src/datastore/perf_datastore_api.c')
-rw-r--r-- | src/datastore/perf_datastore_api.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/datastore/perf_datastore_api.c b/src/datastore/perf_datastore_api.c index 2fa41b635..87b366299 100644 --- a/src/datastore/perf_datastore_api.c +++ b/src/datastore/perf_datastore_api.c | |||
@@ -50,7 +50,7 @@ static struct GNUNET_DATASTORE_Handle *datastore; | |||
50 | /** | 50 | /** |
51 | * Target datastore size (in bytes). | 51 | * Target datastore size (in bytes). |
52 | */ | 52 | */ |
53 | #define MAX_SIZE 1024LL * 1024 * 16 | 53 | #define MAX_SIZE 1024LL * 1024 * 4 |
54 | 54 | ||
55 | /** | 55 | /** |
56 | * Report progress outside of major reports? Should probably be GNUNET_YES if | 56 | * Report progress outside of major reports? Should probably be GNUNET_YES if |
@@ -68,7 +68,7 @@ static struct GNUNET_DATASTORE_Handle *datastore; | |||
68 | * PUT_10 put operations); we report full status every | 68 | * PUT_10 put operations); we report full status every |
69 | * 10 iterations. Abort with CTRL-C. | 69 | * 10 iterations. Abort with CTRL-C. |
70 | */ | 70 | */ |
71 | #define ITERATIONS 10 | 71 | #define ITERATIONS 8 |
72 | 72 | ||
73 | 73 | ||
74 | static unsigned long long stored_bytes; | 74 | static unsigned long long stored_bytes; |
@@ -298,7 +298,7 @@ run_continuation (void *cls, | |||
298 | stored_ops / 1024, /* total operations (in k) */ | 298 | stored_ops / 1024, /* total operations (in k) */ |
299 | 1000 * stored_ops / (1 + GNUNET_TIME_absolute_get_duration(start_time).value)); | 299 | 1000 * stored_ops / (1 + GNUNET_TIME_absolute_get_duration(start_time).value)); |
300 | crc->phase = RP_PUT; | 300 | crc->phase = RP_PUT; |
301 | crc->i = 0; | 301 | crc->j = 0; |
302 | GNUNET_SCHEDULER_add_continuation (crc->sched, | 302 | GNUNET_SCHEDULER_add_continuation (crc->sched, |
303 | GNUNET_NO, | 303 | GNUNET_NO, |
304 | &run_continuation, | 304 | &run_continuation, |
@@ -385,7 +385,9 @@ main (int argc, char *argv[]) | |||
385 | #endif | 385 | #endif |
386 | NULL); | 386 | NULL); |
387 | ret = check (); | 387 | ret = check (); |
388 | 388 | #if REPORT_ID | |
389 | fprintf (stderr, "\n"); | ||
390 | #endif | ||
389 | return ret; | 391 | return ret; |
390 | } | 392 | } |
391 | 393 | ||