Skip to content
Prev Previous commit
Next Next commit
Add examples how to run it on windows
  • Loading branch information
radekdoulik committed Nov 4, 2021
commit e55e42fd9f6e1f5518af60a660e4c161eee84f10
2 changes: 1 addition & 1 deletion src/mono/sample/wasm/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Exec Command="$(_Dotnet) publish /p:Configuration=$(Configuration) /p:TargetArchitecture=wasm /p:TargetOS=Browser $(_AOTFlag) $(_SampleProject)" />
</Target>
<Target Name="RunSampleWithV8" DependsOnTargets="BuildSampleInTree">
<Exec WorkingDirectory="bin/$(Configuration)/AppBundle" Command="v8 --expose_wasm runtime.js -- $(DOTNET_MONO_LOG_LEVEL) --run $(_SampleAssembly)" IgnoreExitCode="true" />
<Exec WorkingDirectory="bin/$(Configuration)/AppBundle" Command="v8 --expose_wasm runtime.js -- $(DOTNET_MONO_LOG_LEVEL) --run $(_SampleAssembly) $(Args)" IgnoreExitCode="true" />
</Target>
<Target Name="CheckServe">
<Exec Command="dotnet tool install -g dotnet-serve" IgnoreExitCode="true" />
Expand Down
15 changes: 11 additions & 4 deletions src/mono/sample/wasm/browser-bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ Browser and console versions are available.

To run the benchmark on linux/mac:

make build
make run
> make build
> make run

can be used in the browser-bench/ and also in the browser-bench/Console/.

To run the benchmark on windows:

> dotnet build /t:RunSample

Example console output:

> make run
Expand Down Expand Up @@ -66,9 +70,12 @@ Multiple results can be also easily combined together in text editor to have a t

### Filter jobs/measurements

The `-t` option can be used to run subset of jobs/measurements like this:
The `-t` option can be used to run subset of jobs/measurements like this, 1st line linux/mac, 2nd line windows:

> make run ARGS="-t Json:non,Exceptions:Inline"
> dotnet build /v:n /t:RunSample /p:Args="-t Json:non%2cExceptions:Inline"

make run ARGS="-t Json:non,Exceptions:Inline"
Note the escaped `,` character (`%2c`) in the dotnet property above.

### Console options

Expand Down