Initial commit

This commit is contained in:
2019-06-05 17:50:01 +02:00
commit cd185ed2e5
17 changed files with 482 additions and 0 deletions

View 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>

View 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}");
}
}
}