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