You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[RFC] Add Comprehensive Performance Benchmark Suite for Intelligent Contract Execution #73
Add a dedicated BenchmarkRunner class and gltest bench CLI command to the GenLayer Testing Suite. This delivers production-grade performance benchmarks for Intelligent Contracts (deterministic + non-deterministic paths) as outlined in the attached analysis.
Motivation
GenLayer Intelligent Contracts introduce LLM calls, web fetches, and equivalence-based consensus. Current testing supports statistical analysis via .analyze(runs=100), but lacks standardized wall-clock, resource, and throughput benchmarks. This feature enables:
I’m taking a current-API pass at this RFC on v0.30-dev. I’ll keep the existing gltest pytest behavior intact, add an opt-in gltest bench subcommand, a reusable benchmark runner, direct/studio execution adapters, deterministic metric tests, and docs. I’ll avoid adding a heavyweight runtime dependency just for metrics; the initial implementation will use wall-clock/throughput plus Python heap peak via the standard library.
Activity
maho0638 commentedon Oct 2, 2026
I’m taking a current-API pass at this RFC on
v0.30-dev. I’ll keep the existinggltestpytest behavior intact, add an opt-ingltest benchsubcommand, a reusable benchmark runner, direct/studio execution adapters, deterministic metric tests, and docs. I’ll avoid adding a heavyweight runtime dependency just for metrics; the initial implementation will use wall-clock/throughput plus Python heap peak via the standard library.