1 @rem Licensed to the .NET Foundation under one or more agreements.
2 @rem The .NET Foundation licenses this file to you under the MIT license.
3 @rem See the LICENSE file in the project root for more information.
10 set CORECLR_OVERLAY=%CORECLR_REPO%\bin\tests\Windows_NT.x64.Release\Tests\Core_Root
11 set CORECLR_PERF=%CORECLR_REPO%\bin\tests\Windows_NT.x64.Release\Jit\Performance\CodeQuality
12 set RUNLOG=%HERE%\bin\Logs\perfrun.log
14 if NOT EXIST %CORECLR_OVERLAY% (
15 echo Can't find test overlay directory '%CORECLR_OVERLAY%'
16 echo Please build and run Release CoreCLR tests
22 @echo --- setting up sandbox
28 @rem stage stuff we need
31 xcopy /sy %CORECLR_REPO%\packages\Microsoft.DotNet.xunit.performance.runner.Windows\1.0.0-alpha-build0040\tools\* . > %RUNLOG%
32 xcopy /sy %CORECLR_REPO%\packages\Microsoft.DotNet.xunit.performance.analysis\1.0.0-alpha-build0040\tools\* . > %RUNLOG%
33 xcopy /sy %CORECLR_REPO%\packages\xunit.console.netcore\1.0.2-prerelease-00101\runtimes\any\native\* . > %RUNLOG%
34 xcopy /sy %CORECLR_REPO%\bin\tests\Windows_NT.x64.Release\Tests\Core_Root\* . > %RUNLOG%
36 @rem find and stage the tests
38 for /R %CORECLR_PERF% %%T in (*.exe) do (
47 set PERFOUT=perf-%BENCHNAME%
48 set XMLOUT=%PERFOUT%-summary.xml
50 echo --- Running %BENCHNAME%
52 xcopy /s %1 . > %RUNLOG%
54 set CORE_ROOT=%HERE%\sandbox
56 xunit.performance.run.exe %BENCHNAME%.exe -runner xunit.console.netcore.exe -runnerhost corerun.exe -verbose -runid %PERFOUT% > %BENCHNAME%.out
58 xunit.performance.analysis.exe %PERFOUT%.xml -xml %XMLOUT% > %BENCHNAME%-analysis.out
60 type %XMLOUT% | findstr "test name"
61 type %XMLOUT% | findstr Duration
62 type %XMLOUT% | findstr InstRetired