Initial commit
This commit is contained in:
12
PorygonSharpCLI/PorygonSharpCLI.csproj
Normal file
12
PorygonSharpCLI/PorygonSharpCLI.csproj
Normal file
@@ -0,0 +1,12 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PorygonSharp\PorygonSharp.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
22
PorygonSharpCLI/Program.cs
Normal file
22
PorygonSharpCLI/Program.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using PorygonSharp;
|
||||
|
||||
namespace PorygonSharpCLI
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
var sw = Stopwatch.StartNew();
|
||||
for (var i = 0; i < 100000; i++)
|
||||
{
|
||||
var script = new Script("a = 500");
|
||||
script.Evaluate();
|
||||
script.Dispose();
|
||||
}
|
||||
sw.Stop();
|
||||
Console.WriteLine($"Time elapsed: {sw.ElapsedMilliseconds}");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user