forked from SciSharp/NumSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
25 lines (24 loc) · 661 Bytes
/
Program.cs
File metadata and controls
25 lines (24 loc) · 661 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
using System;
using System.Linq;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
namespace NumSharp.Benchmark
{
class Program
{
/// <summary>
/// dotnet NumSharp.Benchmark.dll (Benchmark Class Name)
/// dotnet NumSharp.Benchmark.dll nparange
/// </summary>
/// <param name="args"></param>
static void Main(string[] args)
{
for(int i = 0; i < args.Length; i++)
{
string method = $"NumSharp.Benchmark.{args[i]}";
Type type = Type.GetType(method);
BenchmarkRunner.Run(type);
}
}
}
}