regressions: Add percentage.

ck_pring
Samy Al Bahra 14 years ago
parent 9f53c39600
commit 2ccb2e9ed4

@ -110,8 +110,10 @@ thread(void *unused CK_CC_UNUSED)
ck_pr_inc_uint(&e_barrier);
while (ck_pr_load_uint(&e_barrier) < n_threads);
fprintf(stderr, "Peak: %u\nReclamations: %" PRIu64 "\n\n",
record.n_peak, record.n_reclamations);
fprintf(stderr, "Peak: %u (%2.2f%%)\nReclamations: %" PRIu64 "\n\n",
record.n_peak,
(double)record.n_peak / PAIRS * 100,
record.n_reclamations);
ck_epoch_purge(&record);

@ -20,4 +20,4 @@ clean:
rm -rf *~ *.o *.dSYM $(OBJECTS)
include ../../../build/regressions.build
CFLAGS+=-pthread -D_GNU_SOURCE -ggdb
CFLAGS+=-pthread -D_GNU_SOURCE

@ -109,8 +109,10 @@ thread(void *unused)
ck_pr_inc_uint(&e_barrier);
while (ck_pr_load_uint(&e_barrier) < n_threads);
fprintf(stderr, "Peak: %u\nReclamations: %" PRIu64 "\n\n",
record.n_peak, record.n_reclamations);
fprintf(stderr, "Peak: %u (%2.2f%%)\nReclamations: %" PRIu64 "\n\n",
record.n_peak,
(double)record.n_peak / PAIRS * 100,
record.n_reclamations);
ck_hp_clear(&record);
ck_hp_purge(&record);

Loading…
Cancel
Save