[v2,3/3] test: sched_perf: total events per second

Message ID 1535972408-4918-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • Add options to sched_perf test application
Related show

Commit Message

Github ODP bot Sept. 3, 2018, 11 a.m.
From: Petri Savolainen <petri.savolainen@linaro.org>


Added result for events per second over all
workers.

Signed-off-by: Petri Savolainen <petri.savolainen@linaro.org>

---
/** Email created from pull request 687 (psavol:master-test-sched-perf-options)
 ** https://github.com/Linaro/odp/pull/687
 ** Patch: https://github.com/Linaro/odp/pull/687.patch
 ** Base sha: 97fc51b1e5b3fcea9db99ba63c10bda47f79341a
 ** Merge commit sha: 742c63f02e193181bd9172aeb63cf6d3d1de2e40
 **/
 test/performance/odp_sched_perf.c | 3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/test/performance/odp_sched_perf.c b/test/performance/odp_sched_perf.c
index d80f77494..bbd76c86c 100644
--- a/test/performance/odp_sched_perf.c
+++ b/test/performance/odp_sched_perf.c
@@ -564,6 +564,9 @@  static void print_stat(test_global_t *global)
 	       (1000.0 * rounds_ave) / nsec_ave);
 	printf("  events per sec:           %.3f M\n\n",
 	       (1000.0 * events_ave) / nsec_ave);
+
+	printf("TOTAL events per sec:       %.3f M\n\n",
+	       (1000.0 * events_sum) / nsec_ave);
 }
 
 int main(int argc, char **argv)