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