aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/guix/gnu/packages/gnunet.scm2
-rw-r--r--src/util/benchmark.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/contrib/guix/gnu/packages/gnunet.scm b/contrib/guix/gnu/packages/gnunet.scm
index 0602aec0b..6089ee2fa 100644
--- a/contrib/guix/gnu/packages/gnunet.scm
+++ b/contrib/guix/gnu/packages/gnunet.scm
@@ -214,7 +214,7 @@ authentication and support for SSL3 and TLS.")
214 ("pkg-config" ,pkg-config) 214 ("pkg-config" ,pkg-config)
215 ("python" ,python-2))) 215 ("python" ,python-2)))
216 (arguments 216 (arguments
217 `(#:configure-flags (list "--disable-ntlm-wb") 217 `(#:configure-flags (list "--enable-benchmark")
218 #:test-target "test" 218 #:test-target "test"
219 #:parallel-tests? #f 219 #:parallel-tests? #f
220 #:phases 220 #:phases
diff --git a/src/util/benchmark.c b/src/util/benchmark.c
index f832931ee..108e01659 100644
--- a/src/util/benchmark.c
+++ b/src/util/benchmark.c
@@ -64,8 +64,9 @@ write_benchmark_data (struct BenchmarkData *bd)
64 return; 64 return;
65 } 65 }
66 66
67 GNUNET_asprintf (&s, "%s/gnunet-benchmark-ops-%llu-%llu.txt", 67 GNUNET_asprintf (&s, "%s/gnunet-benchmark-ops-%s-%llu-%llu.txt",
68 benchmark_dir, 68 benchmark_dir,
69 (pid == tid) ? "main" : "thread",
69 (unsigned long long) pid, 70 (unsigned long long) pid,
70 (unsigned long long) tid); 71 (unsigned long long) tid);
71 72
@@ -116,8 +117,9 @@ write_benchmark_data (struct BenchmarkData *bd)
116 117
117 GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh)); 118 GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fh));
118 119
119 GNUNET_asprintf (&s, "%s/gnunet-benchmark-urls-%llu-%llu.txt", 120 GNUNET_asprintf (&s, "%s/gnunet-benchmark-urls-%s-%llu-%llu.txt",
120 benchmark_dir, 121 benchmark_dir,
122 (pid == tid) ? "main" : "thread",
121 (unsigned long long) pid, 123 (unsigned long long) pid,
122 (unsigned long long) tid); 124 (unsigned long long) tid);
123 125
@@ -175,6 +177,7 @@ thread_destructor (void *cls)
175 return; 177 return;
176 178
177 GNUNET_assert (NULL != bd); 179 GNUNET_assert (NULL != bd);
180 write_benchmark_data (bd);
178} 181}
179 182
180 183