forked from angularsen/UnitsNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjson-export-net5.bat
More file actions
17 lines (16 loc) · 862 Bytes
/
json-export-net5.bat
File metadata and controls
17 lines (16 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@echo off
SET scriptdir=%~dp0
SET projectdir="%scriptdir%..\.."
SET exportdir="%projectdir%\Artifacts\Benchmark"
:: this fails on the build server (also tested with the nightly benchmark.net package: 0.12.1.1533): possibly related to https://github.com/dotnet/BenchmarkDotNet/issues/1487
dotnet run --project "%projectdir%\UnitsNet.Benchmark" -c Release ^
--framework net6.0 ^
--runtimes net6.0 ^
--artifacts=%exportdir% ^
--exporters json ^
--filter * ^
--iterationTime 250 ^
--statisticalTest 0.001ms ^
--join %1 %2 %3
:: this runs fine, however there is currently no way of displaying multiple-lines-per-chart: see https://github.com/rhysd/github-action-benchmark/issues/18
:: dotnet run --project "%scriptdir%/UnitsNet.Benchmark" -c Release -f net6.0 --runtimes netcoreapp31 net6.0 --filter ** --artifacts="%scriptdir%/Artifacts/Benchmark" --exporters json