summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-12-15 07:27:50 +1030
committerRusty Russell <rusty@rustcorp.com.au>2012-12-15 07:27:50 +1030
commitdfaf896adb74ddf7271c9eee7330f2e3e009345b (patch)
tree7342b4b1628293b50cb0acc84409f0b56881d615
parent769352e9214082c50635d7fe0b32175a267afa8d (diff)
tal: fix skipping tal in samba-allocs benchmark.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-rw-r--r--ccan/tal/benchmark/samba-allocs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccan/tal/benchmark/samba-allocs.c b/ccan/tal/benchmark/samba-allocs.c
index 074276d8..853b1fb2 100644
--- a/ccan/tal/benchmark/samba-allocs.c
+++ b/ccan/tal/benchmark/samba-allocs.c
@@ -340,7 +340,6 @@ after_talloc:
printf("Tal time: %lluns\n", time_to_nsec(alloc_time));
printf("Tal_free time: %lluns\n", time_to_nsec(free_time));
-after_tal:
free_time.tv_sec = free_time.tv_nsec = 0;
for (i = 0; i < LOOPS; i++) {
do_tals(root);
@@ -351,6 +350,7 @@ after_tal:
}
free_time = time_divide(free_time, i);
printf("Single tal_free time: %lluns\n", time_to_nsec(free_time));
+after_tal:
return 0;
}