Example #1
0
        public void float2x2_hashwide_burst()
        {
            FunctionPointer <float2x2_hashwide.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <float2x2_hashwide.TestFunction>(float2x2_hashwide.BurstTestFunction);
            var args = new float2x2_hashwide.Arguments();

            args.Init();

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

            args.Init();

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