private static void RunDebug()

in src/PSRule.Benchmark/Program.cs [91:150]


        private static void RunDebug()
        {
            var profile = new PSRule();
            profile.Prepare();

            Console.WriteLine("Press ENTER to start.");
            Console.ReadLine();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.Invoke();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.InvokeIf();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.InvokeType();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.InvokeSummary();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.Assert();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.Get();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.DefaultTargetNameBinding();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.CustomTargetNameBinding();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.NestedTargetNameBinding();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.AssertHasFieldValue();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.PathTokenize();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.PathExpressionBuild();

            ProfileBlock();
            for (var i = 0; i < DebugIterations; i++)
                profile.PathExpressionGet();
        }