﻿// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information.

namespace Narvalo.Benchmarking
{
    using System.Collections.Generic;

    public sealed class BenchmarkComparison
    {
        public BenchmarkComparison(
            string name,
            IEnumerable<Benchmark> items,
            int iterations)
        {
            Require.NotNullOrEmpty(name, nameof(name));
            Require.NotNull(items, nameof(items));

            Name = name;
            Items = items;
            Iterations = iterations;
        }

        public IEnumerable<Benchmark> Items { get; }

        public int Iterations { get; }

        public string Name { get; }

        public override string ToString() => Name;
    }
}
