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(); }
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(); }