-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Run Information
Name | Value |
---|---|
Architecture | x64 |
OS | ubuntu 22.04 |
Queue | ViperUbuntu |
Baseline | f00121f33af53b62c387d52cbd3dc0159ff70156 |
Compare | 206103050346de885ffdab74043d3f0f6e6e78cc |
Diff | Diff |
Configs | CompilationMode:tiered, LLVM:false, MonoAOT:false, MonoInterpreter:true, RunKind:micro_mono |
Improvements in System.Numerics.Tests.Perf_VectorOf<UInt64>
Benchmark | Baseline | Test | Test/Base | Test Quality | Edge Detector | Baseline IR | Compare IR | IR Ratio |
---|---|---|---|---|---|---|---|---|
22.16 ns | 15.67 ns | 0.71 | 0.51 | False | ||||
56.40 ns | 41.52 ns | 0.74 | 0.35 | False | ||||
33.51 ns | 25.22 ns | 0.75 | 0.44 | False | ||||
19.96 ns | 16.74 ns | 0.84 | 0.39 | False | ||||
22.64 ns | 15.43 ns | 0.68 | 0.40 | False | ||||
47.38 ns | 40.22 ns | 0.85 | 0.37 | False | ||||
50.36 ns | 38.47 ns | 0.76 | 0.34 | False | ||||
42.76 ns | 33.05 ns | 0.77 | 0.32 | False | ||||
47.57 ns | 41.23 ns | 0.87 | 0.23 | False | ||||
50.84 ns | 44.14 ns | 0.87 | 0.28 | False | ||||
44.65 ns | 36.07 ns | 0.81 | 0.30 | False | ||||
52.17 ns | 41.18 ns | 0.79 | 0.37 | False | ||||
19.73 ns | 15.18 ns | 0.77 | 0.47 | False | ||||
34.23 ns | 28.80 ns | 0.84 | 0.41 | False | ||||
48.74 ns | 43.37 ns | 0.89 | 0.30 | False | ||||
30.87 ns | 27.83 ns | 0.90 | 0.41 | False | ||||
45.07 ns | 38.44 ns | 0.85 | 0.30 | False |
Repro
General Docs link: https://github.com/dotnet/performance/blob/main/docs/benchmarking-workflow-dotnet-runtime.md
Repro Steps
Prerequisites (Build files either built locally or downloaded from payload above)
- Libraries build extracted to
runtime/artifacts
or build instructions: Libraries README args:-subset libs+libs.tests -rc release -configuration Release -arch $RunArch -framework net8.0
- CoreCLR product build extracted to
runtime/artifacts/bin/coreclr/$RunOS.$RunArch.Release
, build instructions: CoreCLR README args:-subset clr+libs -rc release -configuration Release -arch $RunArch -framework net8.0
- Mono Runtime build extracted to
runtime/artifacts/bin/mono/$RunOS.$RunArch.Release
, build instructions: MONO README args:-arch $RunArch -os $RunOS -s mono+libs+host+packs -c Release
- Dotnet SDK installed for dotnet commands
- Running commands from the runtime folder
Linux
# Set $RunDir to the runtime directory
RunDir=`pwd`
# Set the OS, arch, and OSId
RunOS='linux'
RunOSId='linux'
RunArch='x64'
# Create mono dotnet
mkdir -p $RunDir/artifacts/dotnet-mono
$RunDir/build.sh -subset libs.pretest -configuration release -ci -arch $RunArch -testscope innerloop /p:RuntimeArtifactsPath=$RunDir/artifacts/bin/mono/$RunOS.$RunArch.Release /p:RuntimeFlavor=mono
cp $RunDir/artifacts/bin/runtime/net8.0-$RunOS-Release-$RunArch/* $RunDir/artifacts/bin/testhost/net8.0-$RunOS-Release-$RunArch/shared/Microsoft.NETCore.App/8.0.0 -rf
cp $RunDir/artifacts/bin/testhost/net8.0-$RunOS-Release-$RunArch/* $RunDir/artifacts/dotnet-mono -r
cp $RunDir/artifacts/bin/coreclr/$RunOS.$RunArch.Release/corerun $RunDir/artifacts/dotnet-mono/shared/Microsoft.NETCore.App/8.0.0/corerun
# Create Core Root
$RunDir/src/tests/build.sh release $RunArch generatelayoutonly /p:LibrariesConfiguration=Release
# Clone performance
git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance.git $RunDir/performance
# Use Interpreter
export MONO_ENV_OPTIONS="--interpreter"
# One line run:
python3 $RunDir/performance/scripts/benchmarks_ci.py --csproj $RunDir/performance/src/benchmarks/micro/MicroBenchmarks.csproj --incremental no --architecture $RunArch -f net8.0 --filter 'System.Numerics.Tests.Perf_VectorOf<UInt64>*' --bdn-artifacts $RunDir/artifacts/BenchmarkDotNet.Artifacts --bdn-arguments="--anyCategories Libraries Runtime --category-exclusion-filter NoInterpreter NoMono --logBuildOutput --generateBinLog --corerun $RunDir/artifacts/dotnet-mono/shared/Microsoft.NETCore.App/8.0.0/corerun"
# Individual Commands:
# Restore
dotnet restore $RunDir/performance/src/benchmarks/micro/MicroBenchmarks.csproj --packages $RunDir/performance/artifacts/packages /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1
# Build
dotnet build $RunDir/performance/src/benchmarks/micro/MicroBenchmarks.csproj --configuration Release --framework net8.0 --no-restore /p:NuGetPackageRoot=$RunDir/performance/artifacts/packages /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1
# Run
dotnet run --project $RunDir/performance/src/benchmarks/micro/MicroBenchmarks.csproj --configuration Release --framework net8.0 --no-restore --no-build -- --filter 'System.Numerics.Tests.Perf_VectorOf<UInt64>*' --anyCategories Libraries Runtime " --category-exclusion-filter NoInterpreter NoMono --logBuildOutput --generateBinLog --corerun $RunDir/artifacts/dotnet-mono/shared/Microsoft.NETCore.App/8.0.0/corerun --artifacts $RunDir/artifacts/BenchmarkDotNet.Artifacts --packages $RunDir/performance/artifacts/packages
Windows
# Set $RunDir to the runtime directory
$RunDir="FullPathHere"
# Set the OS, arch, and OSId
RunOS='windows'
RunOSId='win'
RunArch='x64'
# Create mono dotnet
mkdir -p $RunDir/artifacts/dotnet-mono
$RunDir/build.sh -subset libs.pretest -configuration release -ci -arch $RunArch -testscope innerloop /p:RuntimeArtifactsPath=$RunDir\artifacts\bin\mono\$RunOS.$RunArch.Release /p:RuntimeFlavor=mono
xcopy $RunDir\artifacts\bin\runtime\net8.0-$RunOS-Release-$RunArch\ $RunDir\artifacts\bin\testhost\net8.0-$RunOS-Release-$RunArch\shared\Microsoft.NETCore.App\8.0.0\ /e /y
xcopy $RunDir\artifacts\bin\testhost\net8.0-$RunOS-Release-$RunArch\ $RunDir\artifacts\dotnet-mono\ /e /y
xcopy $RunDir\artifacts\bin\coreclr\$RunOS.$RunArch.Release\corerun $RunDir\artifacts\dotnet-mono\shared\Microsoft.NETCore.App\8.0.0\corerun /y
# Create Core Root
$RunDir\src\tests\build.cmd release $RunArch generatelayoutonly /p:LibrariesConfiguration=Release
# Clone performance
git clone --branch main --depth 1 --quiet https://github.com/dotnet/performance.git $RunDir\performance
# Use Interpreter
export MONO_ENV_OPTIONS="--interpreter"
# One line run:
python3 $RunDir\performance\scripts\benchmarks_ci.py --csproj $RunDir\performance\src\benchmarks\micro\MicroBenchmarks.csproj --incremental no --architecture $RunArch -f net8.0 --filter 'System.Numerics.Tests.Perf_VectorOf<UInt64>*' --bdn-artifacts $RunDir\artifacts\BenchmarkDotNet.Artifacts --bdn-arguments="--anyCategories Libraries Runtime --category-exclusion-filter NoInterpreter NoMono --logBuildOutput --generateBinLog --corerun $RunDir\artifacts\dotnet-mono\shared\Microsoft.NETCore.App\8.0.0\corerun.exe"
# Individual Commands:
# Restore
dotnet restore $RunDir\performance\src\benchmarks\micro\MicroBenchmarks.csproj --packages $RunDir\performance\artifacts\packages /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1
# Build
dotnet build $RunDir\performance\src\benchmarks\micro\MicroBenchmarks.csproj --configuration Release --framework net8.0 --no-restore /p:NuGetPackageRoot=$RunDir\performance\artifacts\packages /p:UseSharedCompilation=false /p:BuildInParallel=false /m:1
# Run
dotnet run --project $RunDir\performance\src\benchmarks\micro\MicroBenchmarks.csproj --configuration Release --framework net8.0 --no-restore --no-build -- --filter 'System.Numerics.Tests.Perf_VectorOf<UInt64>*' --anyCategories Libraries Runtime " --category-exclusion-filter NoInterpreter NoMono --logBuildOutput --generateBinLog --corerun $RunDir\artifacts\dotnet-mono\shared\Microsoft.NETCore.App\8.0.0\corerun.exe --artifacts $RunDir\artifacts\BenchmarkDotNet.Artifacts --packages $RunDir\performance\artifacts\packages
System.Numerics.Tests.Perf_VectorOf<UInt64>.LessThanAnyBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.GreaterThanOrEqualBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.GreaterThanOrEqualAnyBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.GreaterThanAllBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.GreaterThanOrEqualAllBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.AddOperatorBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.SubtractionOperatorBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.AddBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.GreaterThanBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.NegateBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.SubtractBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.LessThanBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.LessThanOrEqualAnyBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.GreaterThanAnyBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.UnaryNegateOperatorBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.LessThanOrEqualAllBenchmark
ETL Files
Histogram
JIT Disasms
System.Numerics.Tests.Perf_VectorOf<UInt64>.DivisionOperatorBenchmark
ETL Files
Histogram
JIT Disasms
Docs
Profiling workflow for dotnet/runtime repository
Benchmarking workflow for dotnet/runtime repository