summaryrefslogtreecommitdiffstats
path: root/tests/ingen_bench.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2017-02-17 09:58:10 +0100
committerDavid Robillard <d@drobilla.net>2017-02-17 09:58:10 +0100
commitddaac8d0c06cbfdf4b1777603e97cedab0e54ead (patch)
treebcd6cb63440869303b753ff92bf46fc750e6beac /tests/ingen_bench.cpp
parente2f6b686003f86af8a64e7c6f7e8cf8c2da7ba69 (diff)
downloadingen-newparallel.tar.gz
ingen-newparallel.tar.bz2
ingen-newparallel.zip
Fix and improve parallel traversalnewparallel
Diffstat (limited to 'tests/ingen_bench.cpp')
-rw-r--r--tests/ingen_bench.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ingen_bench.cpp b/tests/ingen_bench.cpp
index c8203331..c9eea9ba 100644
--- a/tests/ingen_bench.cpp
+++ b/tests/ingen_bench.cpp
@@ -173,12 +173,12 @@ main(int argc, char** argv)
FILE* log = fopen(out_file.c_str(), "a");
if (ftell(log) == 0) {
- fprintf(log, "n_threads\trun_time\tn_frames\n");
+ fprintf(log, "# n_threads\trun_time\treal_time\n");
}
- fprintf(log, "%u\t%llu\t%u\n",
+ fprintf(log, "%u\t%f\t%f\n",
world->conf().option("threads").get<int32_t>(),
- t_end - t_start,
- n_test_frames);
+ (t_end - t_start) / 1000000.0,
+ (n_test_frames / 48000.0));
fclose(log);
// Shut down