Пример #1
0
 public static void ShowAvailableBenchmarks()
 {
     Console.Error.WriteLine("Available benchmarks:");
     foreach (var type in Benchmarks.OrderBy(x => x.Name))
     {
         Console.Error.WriteLine(type.Name);
     }
 }
Пример #2
0
        private void Dispose(bool disposing)
        {
            if (this.disposed)
            {
                return;
            }

            if (disposing)
            {
                instance = null;
            }

            this.disposed = true;
        }
Пример #3
0
 public static void GlobalSetup()
 {
     instance = Benchmarks.Instance;
 }