mirror of
https://github.com/aphrody-labs/NuGet.Client.git
synced 2026-10-14 13:29:05 +00:00
609 B
609 B
Benchmarking
Use the NuGet.Benchmarks project at test\TestExtensions\NuGet.Benchmarks for performance measurements.
-
Create a
.csfile in that directory. The file is git-ignored. -
Add a class that implements
IBenchmark. -
Annotate benchmark methods with
[Benchmark]. -
Do not modify
Program.cs; it discoversIBenchmarkimplementations automatically. -
Run:
dotnet run -c Release --project test\TestExtensions\NuGet.Benchmarks\NuGet.Benchmarks.csproj
See the benchmark project README for an example.