Class SandboxOverheadBenchmark

java.lang.Object
com.helix.experiments.benchmarks.SandboxOverheadBenchmark
Direct Known Subclasses:
SandboxOverheadBenchmark_jmhType_B1

public class SandboxOverheadBenchmark extends Object
JMH Microbenchmark suite measuring compilation overhead and AST capability policy enforcement across trusted and untrusted/sandboxed rule execution paths.
  • Constructor Details

    • SandboxOverheadBenchmark

      public SandboxOverheadBenchmark()
  • Method Details

    • setup

      public void setup() throws Exception
      Throws:
      Exception
    • benchmarkTrustedCompilation

      public CompiledRule benchmarkTrustedCompilation() throws Exception
      Measures baseline compilation of a rule via standard trusted path.
      Throws:
      Exception
    • benchmarkSandboxedCompilation

      public CompiledRule benchmarkSandboxedCompilation() throws Exception
      Measures compilation latency when enforcing AST capability policy (untrusted sandboxed path).
      Throws:
      Exception
    • benchmarkAstCapabilityWalkOnly

      public void benchmarkAstCapabilityWalkOnly()
      Measures pure AST capability policy traversal overhead (walk only).