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