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