File size: 594 Bytes
8c763fb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
using System.Management.Automation.Language;
using BenchmarkDotNet.Attributes;
using MicroBenchmarks;
namespace Engine
{
[BenchmarkCategory(Categories.Engine, Categories.Public)]
public class Parsing
{
[Benchmark]
public Ast UsingStatement()
{
const string Script = @"
using module moduleA
using Assembly assemblyA
using namespace System.IO";
return Parser.ParseInput(Script, out _, out _);
}
}
}
|