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