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