コード例 #1
0
    public void BenchEmFloatClass()
    {
        EmFloatStruct t = new EMFloatClass();

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

        for (int i = 0; i < EmFloatClassIterations; i++)
        {
            t.Run();
        }
    }
コード例 #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();
                }
            }
        }
    }
コード例 #3
0
ファイル: ByteMark.cs プロジェクト: akarpov89/coreclr
    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();
                }
            }
        }
    }