public void snoise3D_burst() { FunctionPointer <snoise3D.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <snoise3D.TestFunction>(snoise3D.BurstTestFunction); var args = new snoise3D.Arguments(); args.Init(); Measure.Method(() => { testFunction.Invoke(ref args); }) .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); args.Dispose(); }
public void snoise3D_mono() { snoise3D.TestFunction testFunction = snoise3D.MonoTestFunction; var args = new snoise3D.Arguments(); args.Init(); Measure.Method(() => { testFunction.Invoke(ref args); }) .Definition(sampleUnit: SampleUnit.Microsecond) .WarmupCount(1) .MeasurementCount(10) .Run(); args.Dispose(); }