Esempio n. 1
0
        public void quaternion_inverse_burst()
        {
            FunctionPointer <quaternion_inverse.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <quaternion_inverse.TestFunction>(quaternion_inverse.BurstTestFunction);
            var args = new quaternion_inverse.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 quaternion_inverse_mono()
        {
            quaternion_inverse.TestFunction testFunction = quaternion_inverse.MonoTestFunction;
            var args = new quaternion_inverse.Arguments();

            args.Init();

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