Fixed a bug in '_RunBenchmark' target that caused ProtoBench to throw an exception during execution

pull/288/head
ArnoldZokas 14 years ago
parent 57afbcf693
commit 8bd5521e69
  1. 13
      build/BuildBenchmark.ps1
  2. 1
      build/Common.targets
  3. 2
      build/build.csproj

@ -0,0 +1,13 @@
write-host `nRunning build. Please wait...
$iterations = 10
for ($i=1; $i -le $iterations; $i++)
{
$sw = [System.Diagnostics.StopWatch]::StartNew()
& E:\dotnet-protobufs\build\BuildAll.bat
$sw.Stop()
$msbuildTotalRunTime += $sw.ElapsedMilliseconds
}
write-host `nMSBuild average speed over $iterations iterations: ($msbuildTotalRunTime/$iterations) milliseconds

@ -75,6 +75,7 @@
<ItemGroup>
<BenchmarkResources Include="$(BenchmarkProtosDirectory)\google_message1.dat" />
<BenchmarkResources Include="$(BenchmarkProtosDirectory)\google_message2.dat" />
<BenchmarkResources Include="$(SourceDirectory)\ProtocolBuffers\bin\$(BuildConfiguration)\Google.ProtocolBuffers.dll" />
<BenchmarkResources Include="$(SourceDirectory)\ProtoBench\bin\$(BuildConfiguration)\ProtoBench.exe" />
</ItemGroup>

@ -20,7 +20,7 @@
<!--Tool Paths-->
<ProtocExePath>$(LibDirectory)\protoc.exe</ProtocExePath>
<ProtogenExePath>$(SourceDirectory)\ProtoGen\bin\$(BuildConfiguration)\protogen.exe</ProtogenExePath>
<ProtoBenchExePath>$(SourceDirectory)\ProtoBench\bin\$(BuildConfiguration)\ProtoBench.exe</ProtoBenchExePath>
<ProtoBenchExePath>$(BuildTempDirectory)\ProtoBench.exe</ProtoBenchExePath>
<NUnitExePath>$(LibDirectory)\NUnit 2.2.8.0\nunit-console.exe</NUnitExePath>
<ZipExePath>$(LibDirectory)\7-Zip 9.20\7za.exe</ZipExePath>
</PropertyGroup>

Loading…
Cancel
Save