Exemplo n.º 1
0
        public void double2x2_inverse_burst()
        {
            FunctionPointer <double2x2_inverse.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <double2x2_inverse.TestFunction>(double2x2_inverse.BurstTestFunction);
            var args = new double2x2_inverse.Arguments();

            args.Init();

            Measure.Method(() =>
            {
                testFunction.Invoke(ref args);
            })
            .Definition(sampleUnit: SampleUnit.Microsecond)
            .WarmupCount(1)
            .MeasurementCount(10)
            .Run();
            args.Dispose();
        }
Exemplo n.º 2
0
        public void double2x2_inverse_mono()
        {
            double2x2_inverse.TestFunction testFunction = double2x2_inverse.MonoTestFunction;
            var args = new double2x2_inverse.Arguments();

            args.Init();

            Measure.Method(() =>
            {
                testFunction.Invoke(ref args);
            })
            .Definition(sampleUnit: SampleUnit.Microsecond)
            .WarmupCount(1)
            .MeasurementCount(10)
            .Run();
            args.Dispose();
        }