Beispiel #1
0
        public void double4_hash_burst()
        {
            FunctionPointer <double4_hash.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <double4_hash.TestFunction>(double4_hash.BurstTestFunction);
            var args = new double4_hash.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 double4_hash_mono()
        {
            double4_hash.TestFunction testFunction = double4_hash.MonoTestFunction;
            var args = new double4_hash.Arguments();

            args.Init();

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