Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
avoid interleaving of output in verbose mode
Browse files Browse the repository at this point in the history
- also print binary output
  • Loading branch information
MartinNowak committed Dec 28, 2014
1 parent c4490ba commit 99c2e57
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmark/runbench.d
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ void runTest(string pattern, string dmd, string dflags, string runArgs, uint rep
auto minDur = Duration.max;

stdout.writef("RUNNING %-20s", bin.relativePath(bindir));
if (verbose) stdout.writeln();
stdout.flush();

auto cmd = bin ~ " " ~ runArgs;
Expand All @@ -64,6 +65,7 @@ void runTest(string pattern, string dmd, string dflags, string runArgs, uint rep
sw.reset;
auto output = runCmd(cmd);
auto dur = cast(Duration)sw.peek;
if (verbose) stdout.write(output);

if (dur >= minDur) continue;
minDur = dur;
Expand Down

0 comments on commit 99c2e57

Please sign in to comment.