コード例 #1
0
        public void pseudoinverse_burst()
        {
            FunctionPointer <pseudoinverse.TestFunction> testFunction = BurstCompiler.CompileFunctionPointer <pseudoinverse.TestFunction>(pseudoinverse.BurstTestFunction);
            var args = new pseudoinverse.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();
        }
コード例 #2
0
        public void pseudoinverse_mono()
        {
            pseudoinverse.TestFunction testFunction = pseudoinverse.MonoTestFunction;
            var args = new pseudoinverse.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();
        }