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

Commit

Permalink
parse own sources instead of std.datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Feb 13, 2015
1 parent c2cde3b commit 7a0e1c8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions benchmark/gcbench/vdparser.d
@@ -1,6 +1,5 @@

import vdc.semantic;
import std.random, std.conv;
import std.random, std.conv, std.file, std.path;

struct FalsePointers
{
Expand All @@ -12,7 +11,6 @@ FalsePointers* ptrs;

void main(string[] argv)
{
string fname = argv.length > 1 ? argv[1] : "../../phobos/std/datetime.d";
size_t nIter = 10;
if(argv.length > 2)
nIter = to!size_t(argv[2]);
Expand All @@ -30,6 +28,7 @@ void main(string[] argv)
Project prj = new Project;
foreach(i; 0..nIter)
{
prj.addAndParseFile(fname);
foreach(string name; dirEntries(buildPath("gcbench", "vdparser.extra"), "*.d", SpanMode.depth))
prj.addAndParseFile(name);
}
}

0 comments on commit 7a0e1c8

Please sign in to comment.