Esempio n. 1
0
        public void Normalize_Plane_burst()
        {
            FunctionPointer <Normalize_Plane.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <Normalize_Plane.TestFunction>(Normalize_Plane.BurstTestFunction);
            var args = new Normalize_Plane.Arguments();

            args.Init();

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

            args.Init();

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