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