public void Transform_float3x3_mono() { Transform_float3x3.TestFunction testFunction = Transform_float3x3.MonoTestFunction; var args = new Transform_float3x3.Arguments(); args.Init(); var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); args.Dispose(); }
public void Transform_float3x3_burst() { FunctionPointer <Transform_float3x3.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <Transform_float3x3.TestFunction>(Transform_float3x3.BurstTestFunction); var args = new Transform_float3x3.Arguments(); args.Init(); var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); args.Dispose(); }