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

Commit

Permalink
replace usage of deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Dec 27, 2014
1 parent 758a3ca commit 24e5b10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions benchmark/aabench/bulk.d
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ void runTest(V)(ref V v)
aa[k] = v;
}
stop();
aa.clear();
aa.destroy();

start();
foreach_reverse(k; 0 .. Size / V.sizeof)
{
aa[k] = v;
}
stop();
aa.clear();
aa.destroy();

start();
foreach(ref k; 0 .. trot * (Size / V.sizeof))
Expand Down
9 changes: 5 additions & 4 deletions benchmark/runbench.d
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ bool verbose;
void runCmd(string cmd)
{
import std.exception : enforce;
import std.process : system;
if (verbose)
writeln(cmd);
enforce(!system(cmd));
import std.process : executeShell;

if (verbose) writeln(cmd);
auto res = executeShell(cmd);
enforce(res.status == 0, res.output);
}

void runTest(string pattern, string dmd, string dflags)
Expand Down

0 comments on commit 24e5b10

Please sign in to comment.