Team Ai
Datasetpublic

MegaBites-AI/Windows-powershell

sourceHugging Facemitupdated 6mo agoView on Hugging Face
0likes372downloads
Engine.Parser.cs24 linesDownload Raw Back to benchmarks
1// Copyright (c) Microsoft Corporation.2// Licensed under the MIT License.3 4using System.Management.Automation.Language;5using BenchmarkDotNet.Attributes;6using MicroBenchmarks;7 8namespace Engine9{10    [BenchmarkCategory(Categories.Engine, Categories.Public)]11    public class Parsing12    {13        [Benchmark]14        public Ast UsingStatement()15        {16            const string Script = @"17                using module moduleA18                using Assembly assemblyA19                using namespace System.IO";20            return Parser.ParseInput(Script, out _, out _);21        }22    }23}24