- yaz_log(YLOG_LOG, "Flushed %d postings, %d/%d words, %d records",
- b->no_entries, no_words, no_new_words, no_docs);
+ yaz_timing_stop(tim_isamb);
+
+ number_of_int_splits = isamb_get_int_splits(isb) - number_of_int_splits;
+ number_of_leaf_splits = isamb_get_leaf_splits(isb) - number_of_leaf_splits;
+ number_of_dict_splits = dict_get_no_split(dict) - number_of_dict_splits;
+
+ if (b->round == 0)
+ {
+ printf("# run total dict-real user sys isam-real user sys "
+ " intsp leafsp docs postings words new d-spl\n");
+ }
+ b->round++;
+ printf("%5d %9.6f %9.6f %5.2f %5.2f %9.6f %5.2f %5.2f "
+ "%6" ZINT_FORMAT0 " %6" ZINT_FORMAT0
+ " %8d %8d %6d %6d" " %5" ZINT_FORMAT0 "\n",
+ b->round,
+ yaz_timing_get_real(tim_dict) + yaz_timing_get_real(tim_isamb),
+ yaz_timing_get_real(tim_dict),
+ yaz_timing_get_user(tim_dict),
+ yaz_timing_get_sys(tim_dict),
+ yaz_timing_get_real(tim_isamb),
+ yaz_timing_get_user(tim_isamb),
+ yaz_timing_get_sys(tim_isamb),
+ number_of_int_splits,
+ number_of_leaf_splits,
+ no_docs,
+ b->no_entries,
+ no_words,
+ no_new_words,
+ number_of_dict_splits
+ );
+ fflush(stdout);
+