Benchmarks.Program.BenchEmitMapper C# (CSharp) Метод

BenchEmitMapper() статический приватный Метод

static private BenchEmitMapper ( int mappingsCount ) : long
mappingsCount int
Результат long
        static long BenchEmitMapper(int mappingsCount)
        {
            var mapper = ObjectMapperManager.DefaultInstance.GetMapper<BenchSource, BenchDestination>();
            var s = new BenchSource();
            var d = new BenchDestination();

            var sw = new Stopwatch();
            sw.Start();
            for (int i = 0; i < mappingsCount; ++i)
            {
                mapper.Map(s, d);
            }
            sw.Stop();
            return sw.ElapsedMilliseconds;
        }