forked from reactivemarbles/DynamicData
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
26 lines (22 loc) · 943 Bytes
/
Program.cs
File metadata and controls
26 lines (22 loc) · 943 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) 2011-2019 Roland Pheasant. All rights reserved.
// Roland Pheasant licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.
using System.IO;
using System.Runtime.CompilerServices;
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Running;
namespace DynamicData.Benchmarks
{
public static class Program
{
public static void Main(string[] args)
=> BenchmarkSwitcher
.FromAssembly(typeof(Program).Assembly)
.Run(args, DefaultConfig.Instance
.WithArtifactsPath(Path.Combine(
GetProjectRootDirectory(),
Path.GetFileName(DefaultConfig.Instance.ArtifactsPath))));
private static string GetProjectRootDirectory([CallerFilePath] string? callerFilePath = null)
=> Path.GetDirectoryName(callerFilePath)!;
}
}