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