diff options
author | Drew Scoggins <anscoggi@microsoft.com> | 2017-04-28 11:45:01 -0700 |
---|---|---|
committer | Drew Scoggins <anscoggi@microsoft.com> | 2017-04-28 15:55:14 -0700 |
commit | 613445128b43651ee30563b7913f431feb891b7f (patch) | |
tree | e2d7dba7029cc08e0267ab2976570283848967a0 /Documentation | |
parent | 599e00cfba40be39db49f3055dcb4138c10b74bf (diff) | |
download | coreclr-613445128b43651ee30563b7913f431feb891b7f.tar.gz coreclr-613445128b43651ee30563b7913f431feb891b7f.tar.bz2 coreclr-613445128b43651ee30563b7913f431feb891b7f.zip |
Add instructions for running local perf tests
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/project-docs/performance-guidelines.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/project-docs/performance-guidelines.md b/Documentation/project-docs/performance-guidelines.md index f9c5e17c91..5263e49999 100644 --- a/Documentation/project-docs/performance-guidelines.md +++ b/Documentation/project-docs/performance-guidelines.md @@ -50,5 +50,14 @@ Capturing a trace using PerfView will allow you to: PerfView is available at the [Microsoft Download Center](http://www.microsoft.com/en-us/download/details.aspx?id=28567 "Microsoft Download Center"). The help documentation is quite substantial and can help you get started. Clicking the blue links throughout PerfView's UI will also take you to the appropriate help topic. It is also recommended that you watch the [PerfView Tutorial Videos](http://channel9.msdn.com/Series/PerfView-Tutorial). +# Running the CoreCLR Performance Tests on Windows# +1. The first step to running the performance tests locally is to do a release build of CoreCLR and all of the performance tests. You can do this with the command `build.cmd x64 Release`, this will of course build the x64 runtime, and you should use x86 if you want to test x86. + +2. After building the runtime you will need to generate a core root that contains all of the binaries we just built along with the required dependencies. This can be done with the command `tests\runtest.cmd Release x64 GenerateLayoutOnly`, with the same caveat that x86 should be used if that is the platform that you are testing. + +3. Now we need to actually run the performance tests. You can do that with the following command that should be run from the root of your repo `tests\scripts\run-xunit-perf.cmd -arch x64 -configuration Release -testBinLoc bin\tests\Windows_NT.x64.Release\Jit\Performance\CodeQuality`. This will run all of the tests in the JIT CodeQuality directory as the script will walk all sub-directories and look for tests to run. If you want to just run a single test, pass the path of the single test that you want to run. + +4. Navigate to the `sandbox` directory in the root of your repo. Inside that directory you will find a bunch of files that follow the name Perf-*.md. These will contain the results, formatted as Markdown files, for each test that was run. + # Additional Help # If you have questions, run into any issues, or would like help with any performance related topics, please feel free to post a question. Someone from the .NET performance team will be happy to help. |