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