Exemplo n.º 1
0
    public void DelegateInvoke()
    {
        DelegateLong dl = new DelegateLong(this.Invocable1);
        Object obj = new Object();

        long ret = dl(obj, 100, 100);

        foreach (var iteration in Benchmark.Iterations)
            using (iteration.StartMeasurement())
                ret = dl(obj, 100, 100);
    }
Exemplo n.º 2
0
    public void DelegateInvoke()
    {
        DelegateLong dl  = new DelegateLong(this.Invocable1);
        Object       obj = new Object();

        long ret = dl(obj, 100, 100);

        foreach (var iteration in Benchmark.Iterations)
        {
            using (iteration.StartMeasurement())
                ret = dl(obj, 100, 100);
        }
    }
Exemplo n.º 3
0
        public long DelegateInvoke()
        {
            DelegateLong dl  = dlField;
            Object       obj = objField;

            long ret = 0;

            for (int i = 0; i < InnerIterationCount200000; i++)
            {
                ret = dl(obj, 100, 100);
            }

            return(ret);
        }
Exemplo n.º 4
0
 public void SetupDelegateInvoke()
 {
     dlField  = new DelegateLong(this.Invocable1);
     objField = new Object();
 }