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