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

            args.Init();

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