예제 #1
0
        public void float3_normalizesafe_burst()
        {
            FunctionPointer <float3_normalizesafe.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <float3_normalizesafe.TestFunction>(float3_normalizesafe.BurstTestFunction);
            var args = new float3_normalizesafe.Arguments();

            args.Init();

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

            args.Init();

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