summaryrefslogtreecommitdiff
path: root/orc-test
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-08-19 12:42:02 -0700
committerDavid Schleef <ds@schleef.org>2010-08-19 12:42:02 -0700
commit22efb1c8252d16882d57ff68b64126dd5f9dd769 (patch)
treecf19936e08f100fa0bf5138ff950af22573f593e /orc-test
parentf4ac35cf062a317e0391b516870657883c72147c (diff)
Fix printing of performance data in tests
Diffstat (limited to 'orc-test')
-rw-r--r--orc-test/orctest.c13
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]);