зеркало из https://github.com/dotnet/performance.git
[wasm] Update steps to run the benchmarks against local runtime build (#4333)
* Update docs * add blank lines * minor change * update doc as per markdown linting rules * revert .mjs renaming * feedback
This commit is contained in:
Родитель
e5fadfb43c
Коммит
eb35a44768
|
@ -174,7 +174,7 @@ In order to run the benchmarks against local [dotnet/runtime](https://github.com
|
|||
|
||||
This would produce `/path/to/dotnet/runtime/artifacts/bin/dotnet-latest`, which should be used to run the benchmarks.
|
||||
|
||||
3. And you need `/path/to/dotnet/runtime/src/mono/wasm/test-main.js`
|
||||
3. And you need `/path/to/dotnet/runtime/src/mono/browser/test-main.js`
|
||||
|
||||
#### Install v8 engine
|
||||
|
||||
|
@ -182,9 +182,17 @@ Make sure you have the v8 engine installed and in the PATH. Follow the installat
|
|||
|
||||
#### Run the benchmarks with the interpreter
|
||||
|
||||
1. Configure NuGet Feeds to include local packages. Open the `NuGet.config` and modify `packageSources` section
|
||||
|
||||
```xml
|
||||
<add key="dotnet-runtime" value="/path/to/dotnet/runtime/artifacts/packages/Release/Shipping" />
|
||||
```
|
||||
|
||||
2. Run the benchmark
|
||||
|
||||
```cmd
|
||||
/path/to/dotnet/performance$ python3 ./scripts/benchmarks_ci.py -f net9.0 --dotnet-path </path/to/dotnet/runtime/>artifacts/bin/dotnet-latest --wasm --run-isolated --bdn-artifacts artifacts/BenchmarkDotNet.Artifacts
|
||||
--bdn-arguments="--anyCategories Libraries Runtime --category-exclusion-filter NoInterpreter NoWASM NoMono --logBuildOutput --wasmDataDir </path/to/dotnet/runtime>/src/mono/wasm --filter <filter>"
|
||||
--bdn-arguments="--anyCategories Libraries Runtime --category-exclusion-filter NoInterpreter NoWASM NoMono --logBuildOutput --wasmArgs=\"--module\" --wasmDataDir </path/to/dotnet/runtime>/src/mono/browser --filter <filter>"
|
||||
```
|
||||
|
||||
#### Run the benchmarks with AOT
|
||||
|
@ -193,7 +201,7 @@ Essentially, add `--aotcompilermode wasm` to the `--bdn-arguments=".."`:
|
|||
|
||||
```cmd
|
||||
/path/to/dotnet/performance$ python3 ./scripts/benchmarks_ci.py --csproj src/benchmarks/micro/MicroBenchmarks.csproj -f net9.0 --dotnet-path </path/to/dotnet/runtime/>artifacts/bin/dotnet-latest --wasm --run-isolated --bdn-artifacts artifacts/BenchmarkDotNet.Artifacts
|
||||
--bdn-arguments="--category-exclusion-filter NoInterpreter NoWASM NoMono --aotcompilermode wasm --logBuildOutput --buildTimeout 3600 --wasmDataDir </path/to/dotnet/runtime>/src/mono/wasm --filter <filter>"
|
||||
--bdn-arguments="--category-exclusion-filter NoInterpreter NoWASM NoMono --aotcompilermode wasm --logBuildOutput --buildTimeout 3600 --wasmArgs=\"--module\" --wasmDataDir </path/to/dotnet/runtime>/src/mono/browser --filter <filter>"
|
||||
```
|
||||
|
||||
#### Note about "file ... being used by another process" error
|
||||
|
|
|
@ -12,7 +12,7 @@ Basic guidance is:
|
|||
|
||||
See [azure-pipelines.yml](../../azure-pipelines.yml) (templates-official example) or [azure-pipelines-pr.yml](../../azure-pipelines-pr.yml) (templates example) for examples.
|
||||
|
||||
#### The `templateIs1ESManaged` parameter
|
||||
### The `templateIs1ESManaged` parameter
|
||||
|
||||
The `templateIs1ESManaged` is available on most templates and affects which of the variants is used for nested templates. See [Development Notes](#development-notes) below for more information on the `templateIs1ESManaged1 parameter.
|
||||
|
||||
|
@ -23,6 +23,7 @@ The `templateIs1ESManaged` is available on most templates and affects which of t
|
|||
1ES pipeline templates impose a policy where every publish artifact execution results in additional security scans being injected into your pipeline. When using `templates-official/jobs/jobs.yml`, Arcade reduces the number of additional security injections by gathering all publishing outputs into the [Build.ArtifactStagingDirectory](https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&tabs=yaml#build-variables-devops-services), and utilizing the [outputParentDirectory](https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/1es-pipeline-templates/features/outputs#multiple-outputs) feature of 1ES pipeline templates. When implementing your pipeline, if you ensure publish artifacts are located in the `$(Build.ArtifactStagingDirectory)`, and utilize the 1ES provided template context, then you can reduce the number of security scans for your pipeline.
|
||||
|
||||
Example:
|
||||
|
||||
``` yaml
|
||||
# azure-pipelines.yml
|
||||
extends:
|
||||
|
@ -57,9 +58,9 @@ extends:
|
|||
|
||||
Note: Multiple outputs are ONLY applicable to 1ES PT publishing (only usable when referencing `templates-official`).
|
||||
|
||||
# Development notes
|
||||
## Development notes
|
||||
|
||||
**Folder / file structure**
|
||||
### Folder / file structure
|
||||
|
||||
``` text
|
||||
eng\common\
|
||||
|
|
Загрузка…
Ссылка в новой задаче