Beispiel #1
0
        public void float2_sincos_burst()
        {
            FunctionPointer <float2_sincos.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <float2_sincos.TestFunction>(float2_sincos.BurstTestFunction);
            var args = new float2_sincos.Arguments();

            args.Init();

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

            args.Init();

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