PkgInst
20 строк · 449.0 Байт
1using BenchmarkDotNet.Attributes;
2
3namespace PkgInst.Benchmark;
4
5public class PackageHelperBenchmark
6{
7private static readonly PackageHelper _packageHelper = new PackageHelper(Path.Combine("D:", "ksc", "KLSHARE", "PkgInst"));
8
9[Benchmark]
10public void GetPackages()
11{
12_packageHelper.GetPackages();
13}
14
15[Benchmark]
16public void GetPackagesInParallel()
17{
18_packageHelper.GetPackagesInParallel();
19}
20}
21