diff options
author | David Schleef <ds@schleef.org> | 2010-08-19 12:42:02 -0700 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2010-08-19 12:42:02 -0700 |
commit | 22efb1c8252d16882d57ff68b64126dd5f9dd769 (patch) | |
tree | cf19936e08f100fa0bf5138ff950af22573f593e /orc-test | |
parent | f4ac35cf062a317e0391b516870657883c72147c (diff) |
Fix printing of performance data in tests
Diffstat (limited to 'orc-test')
-rw-r--r-- | orc-test/orctest.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/orc-test/orctest.c b/orc-test/orctest.c index 7ddc1b2..673eb2b 100644 --- a/orc-test/orctest.c +++ b/orc-test/orctest.c @@ -951,14 +951,19 @@ orc_test_performance_full (OrcProgram *program, int flags, orc_executor_set_stride (ex, j, src[j-ORC_VAR_S1]->stride); } } - orc_profile_start (&prof); - orc_executor_run (ex); - orc_profile_stop (&prof); + if (flags & ORC_TEST_FLAGS_BACKUP) { + orc_profile_start (&prof); + orc_executor_run_backup (ex); + orc_profile_stop (&prof); + } else { + orc_profile_start (&prof); + orc_executor_run (ex); + orc_profile_stop (&prof); + } } ORC_DEBUG ("done running"); orc_profile_get_ave_std (&prof, &ave, &std); - //printf("%g %g\n", ave/(n*m), std/(n*m)); for(i=0;i<4;i++){ if (dest_exec[i]) orc_array_free (dest_exec[i]); |