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

            args.Init();

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

            args.Init();

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