mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
- Introduce SafeHandleWrapper with gating, short drain wait, and deferred release on last in-flight exit. - Wire Engine/Program/Rvm/CompiledPolicy to wrapper (centralized handle use, interop helper). - Add C# memory growth tests (using/finalizer paths) and extend xtask C# runner options. - Add pooled marshalling utilities, ResultHelpers, and API cleanups; update versions/changelog. Fixes #570. Closes #554 Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System;
|
|
|
|
namespace Benchmarks
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
Console.WriteLine("=== Regorus C# Benchmarks ===\n");
|
|
|
|
try
|
|
{
|
|
Console.WriteLine("Running Engine Evaluation Benchmark...");
|
|
EngineEvaluationBenchmark.RunEngineEvaluationBenchmark();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Console.WriteLine($"Engine benchmark failed: {ex.Message}");
|
|
}
|
|
|
|
Console.WriteLine("\n" + new string('=', 80) + "\n");
|
|
|
|
try
|
|
{
|
|
Console.WriteLine("Running Compiled Policy Evaluation Benchmark...");
|
|
CompiledPolicyEvaluationBenchmark.RunCompiledPolicyEvaluationBenchmark();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
Console.WriteLine($"Compiled policy benchmark failed: {ex.Message}");
|
|
}
|
|
|
|
Console.WriteLine("\n=== Benchmarks Complete ===");
|
|
}
|
|
}
|
|
}
|