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