summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-11-28 13:26:38 +0000
committerCarl Hetherington <cth@carlh.net>2015-11-28 13:26:38 +0000
commitbe47d7947db7ace7179caf30129bef2f164da090 (patch)
tree0112bcfa612dd45fbf64c47328db817ccc72360f /test
parentae6860a1e10c0dc62db16fd47aacd8c19a79c754 (diff)
More bench tweaks.
Diffstat (limited to 'test')
-rw-r--r--test/bench.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/bench.cc b/test/bench.cc
index 0559b5a9..3f29ebe6 100644
--- a/test/bench.cc
+++ b/test/bench.cc
@@ -50,6 +50,7 @@ main (int argc, char* argv[])
for (int i = 0; i < decompress_count; ++i) {
xyz = dcp::decompress_j2k (j2k, 0);
cout << (i + 1) << " ";
+ cout.flush ();
}
cout << "\n";
@@ -70,6 +71,7 @@ main (int argc, char* argv[])
for (int i = 0; i < compress_count; ++i) {
dcp::compress_j2k (xyz, j2k_bandwidth, 24, false, false);
cout << (i + 1) << " ";
+ cout.flush ();
}
cout << "\n";
@@ -84,5 +86,5 @@ main (int argc, char* argv[])
}
cout << (j2k_bandwidth / 1000000) << "Mbps: "
- << compress_count / (stop_seconds - start_seconds) << " fps.";
+ << compress_count / (stop_seconds - start_seconds) << " fps.\n";
}