Lines Matching refs:res

39 void false_hits_report_progress(int iter, struct bench_res *res, long delta_ns)  in false_hits_report_progress()  argument
41 long total = res->false_hits + res->hits + res->drops; in false_hits_report_progress()
47 res->false_hits, total, ((float)res->false_hits / total) * 100); in false_hits_report_progress()
50 void false_hits_report_final(struct bench_res res[], int res_cnt) in false_hits_report_final() argument
56 total_hits += res[i].hits; in false_hits_report_final()
57 total_false_hits += res[i].false_hits; in false_hits_report_final()
58 total_drops += res[i].drops; in false_hits_report_final()
68 void hits_drops_report_progress(int iter, struct bench_res *res, long delta_ns) in hits_drops_report_progress() argument
73 hits_per_sec = res->hits / 1000000.0 / (delta_ns / 1000000000.0); in hits_drops_report_progress()
75 drops_per_sec = res->drops / 1000000.0 / (delta_ns / 1000000000.0); in hits_drops_report_progress()
85 grace_period_latency_basic_stats(struct bench_res res[], int res_cnt, struct basic_stats *gp_stat) in grace_period_latency_basic_stats() argument
92 gp_stat->mean += res[i].gp_ns / 1000.0 / (double)res[i].gp_ct / (0.0 + res_cnt); in grace_period_latency_basic_stats()
94 #define IT_MEAN_DIFF (res[i].gp_ns / 1000.0 / (double)res[i].gp_ct - gp_stat->mean) in grace_period_latency_basic_stats()
104 grace_period_ticks_basic_stats(struct bench_res res[], int res_cnt, struct basic_stats *gp_stat) in grace_period_ticks_basic_stats() argument
110 gp_stat->mean += res[i].stime / (double)res[i].gp_ct / (0.0 + res_cnt); in grace_period_ticks_basic_stats()
112 #define IT_MEAN_DIFF (res[i].stime / (double)res[i].gp_ct - gp_stat->mean) in grace_period_ticks_basic_stats()
121 void hits_drops_report_final(struct bench_res res[], int res_cnt) in hits_drops_report_final() argument
129 hits_mean += res[i].hits / 1000000.0 / (0.0 + res_cnt); in hits_drops_report_final()
130 drops_mean += res[i].drops / 1000000.0 / (0.0 + res_cnt); in hits_drops_report_final()
136 hits_stddev += (hits_mean - res[i].hits / 1000000.0) * in hits_drops_report_final()
137 (hits_mean - res[i].hits / 1000000.0) / in hits_drops_report_final()
139 drops_stddev += (drops_mean - res[i].drops / 1000000.0) * in hits_drops_report_final()
140 (drops_mean - res[i].drops / 1000000.0) / in hits_drops_report_final()
142 total_ops = res[i].hits + res[i].drops; in hits_drops_report_final()
159 void ops_report_progress(int iter, struct bench_res *res, long delta_ns) in ops_report_progress() argument
163 hits_per_sec = res->hits / 1000000.0 / (delta_ns / 1000000000.0); in ops_report_progress()
171 void ops_report_final(struct bench_res res[], int res_cnt) in ops_report_final() argument
177 hits_mean += res[i].hits / 1000000.0 / (0.0 + res_cnt); in ops_report_final()
181 hits_stddev += (hits_mean - res[i].hits / 1000000.0) * in ops_report_final()
182 (hits_mean - res[i].hits / 1000000.0) / in ops_report_final()
192 void local_storage_report_progress(int iter, struct bench_res *res, in local_storage_report_progress() argument
198 hits_per_sec = res->hits / 1000000.0 / delta_sec; in local_storage_report_progress()
199 important_hits_per_sec = res->important_hits / 1000000.0 / delta_sec; in local_storage_report_progress()
207 void local_storage_report_final(struct bench_res res[], int res_cnt) in local_storage_report_final() argument
214 hits_mean += res[i].hits / 1000000.0 / (0.0 + res_cnt); in local_storage_report_final()
215 important_hits_mean += res[i].important_hits / 1000000.0 / (0.0 + res_cnt); in local_storage_report_final()
220 hits_stddev += (hits_mean - res[i].hits / 1000000.0) * in local_storage_report_final()
221 (hits_mean - res[i].hits / 1000000.0) / in local_storage_report_final()
224 (important_hits_mean - res[i].important_hits / 1000000.0) * in local_storage_report_final()
225 (important_hits_mean - res[i].important_hits / 1000000.0) / in local_storage_report_final()
718 struct bench_res *res = &state.results[iter]; in collect_measurements() local
720 bench->measure(res); in collect_measurements()
723 bench->report_progress(iter, res, delta_ns); in collect_measurements()