public void float2_shuffle_mono() { float2_shuffle.TestFunction testFunction = float2_shuffle.MonoTestFunction; var args = new float2_shuffle.Arguments(); args.Init(); var monoSampleGroup = new SampleGroup("Mono", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) .SampleGroup(monoSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); args.Dispose(); }
public void float2_shuffle_burst() { FunctionPointer<float2_shuffle.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer<float2_shuffle.TestFunction>(float2_shuffle.BurstTestFunction); var args = new float2_shuffle.Arguments(); args.Init(); var burstSampleGroup = new SampleGroup("Burst", SampleUnit.Microsecond); Measure.Method(() => { testFunction.Invoke(ref args); }) .SampleGroup(burstSampleGroup) .WarmupCount(1) .MeasurementCount(10) .Run(); args.Dispose(); }