Ejemplo n.º 1
0
        public void srdnoise_burst()
        {
            FunctionPointer <srdnoise.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <srdnoise.TestFunction>(srdnoise.BurstTestFunction);
            var args = new srdnoise.Arguments();

            args.Init();

            Measure.Method(() =>
            {
                testFunction.Invoke(ref args);
            })
            .Definition(sampleUnit: SampleUnit.Microsecond)
            .WarmupCount(1)
            .MeasurementCount(10)
            .Run();
            args.Dispose();
        }
Ejemplo n.º 2
0
        public void srdnoise_mono()
        {
            srdnoise.TestFunction testFunction = srdnoise.MonoTestFunction;
            var args = new srdnoise.Arguments();

            args.Init();

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