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