public void BenchEmFloat()
    {
        EmFloatStruct t = new EMFloat();

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

        for (int i = 0; i < EmFloatIterations; i++)
        {
            t.Run();
        }
    }
Exemple #2
0
    public static void BenchEmFloat()
    {
        Setup();
        EmFloatStruct t = new EMFloat();

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

        foreach (var iteration in Benchmark.Iterations)
        {
            using (iteration.StartMeasurement())
            {
                for (int i = 0; i < EmFloatIterations; i++)
                {
                    t.Run();
                }
            }
        }
    }
Exemple #3
0
    public static void BenchEmFloat()
    {
        Setup();
        EmFloatStruct t = new EMFloat();
        t.loops = 100;
        t.adjust = 0;

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