diff --git a/Jint.Benchmark/ProxyBenchmark.cs b/Jint.Benchmark/ProxyBenchmark.cs index 365dacdc5..e315f25af 100644 --- a/Jint.Benchmark/ProxyBenchmark.cs +++ b/Jint.Benchmark/ProxyBenchmark.cs @@ -1,5 +1,9 @@ +#nullable enable + using BenchmarkDotNet.Attributes; using Jint.Native; +using Jint.Native.Object; +using Jint.Runtime.Interop; namespace Jint.Benchmark; @@ -8,6 +12,8 @@ namespace Jint.Benchmark; /// (forwarding) handler, apply/construct on a function proxy, revocable creation + revoke /// churn, and typeof on a revoked function proxy (which must not throw). Rows measure the /// per-operation trap machinery — handler lookup, trap invocation and invariant checks. +/// The Clr* rows mirror the JS-handler rows 1:1 using the .NET +/// trap API (Engine.Advanced.CreateProxy) over the same target objects. /// [MemoryDiagnoser] [HideColumns("Error", "Gen0", "Gen1", "Gen2")] @@ -26,6 +32,12 @@ public class ProxyBenchmark private Prepared