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