Ejemplo n.º 1
0
    public void BenchEmFloatClass()
    {
        EmFloatStruct t = new EMFloatClass();

        t.loops  = 50;
        t.adjust = 1;

        for (int i = 0; i < EmFloatClassIterations; i++)
        {
            t.Run();
        }
    }
Ejemplo n.º 2
0
    public static void BenchEmFloatClass()
    {
        Setup();
        EmFloatStruct t = new EMFloatClass();

        t.loops  = 50;
        t.adjust = 1;

        foreach (var iteration in Benchmark.Iterations)
        {
            using (iteration.StartMeasurement())
            {
                for (int i = 0; i < EmFloatClassIterations; i++)
                {
                    t.Run();
                }
            }
        }
    }
Ejemplo n.º 3
0
    public static void BenchEmFloatClass()
    {
        Setup();
        EmFloatStruct t = new EMFloatClass();
        t.loops = 100;
        t.adjust = 0;

        foreach (var iteration in Benchmark.Iterations)
        {
            using (iteration.StartMeasurement())
            {
                for (int i = 0; i < EmFloatClassIterations; i++) 
                {
                    t.Run();
                }
            }
        }
    }