Technical
May 27, 2025
Performance tracking is absolutely critical for zkVMs, where execution time and memory usage directly determine whether proofs remain practical for real-world applications. Even seemingly minor regressions can snowball into significant overhead when scaling to production workloads. Our benchmark analysis tooling ensures Valida maintains predictable, optimized performance by enabling targeted improvements and rapid fixes when we detect either regressions or optimization opportunities.
By continuously monitoring these key metrics, we prevent small inefficiencies from compounding into major bottlenecks, keeping the zkVM performant across its entire operational range. This rigorous approach to performance management allows us to deliver consistent proof generation times while maintaining the flexibility to implement new features and optimizations.
To systematically monitor the performance of Valida zkVM, we developed a benchmark analysis tool, a Nim program that processes benchmark results from our CI pipeline.
This tool helps us:
The analyser makes use of many of the Nim libraries Sebastian wrote during his PhD that involved a lot of plotting, dataframe, curve fitting and more.
Input: Benchmark Data from CI
Our benchmark CI runs on every pull request, executing a suite of programs (written in C and Rust) on Valida zkVM. These include:
Each benchmark runs multiple times (default: 30 iterations, fewer for long-running programs), and the CI outputs a CSV file with execution time and memory usage per run:
Additionally, we log trace sizes (key for zkVM performance analysis).
Example Outputs
As we evolve our benchmarking system, we're planning several key enhancements to provide even deeper insights into Valida's performance characteristics:
→ Reveals whether adding more compute resources actually reduces runtime as expected
→ Enables apples-to-apples comparisons with other zkVMs
→ Provides true operational cost insights for large-scale deployments
→ Transparent performance tracking for our customers and community
These enhancements will position Valida as having one of the most comprehensive benchmarking systems in the zkVM space, providing both developers and users with unparalleled visibility into real-world performance characteristics. The data will not only help optimize Valida itself, but also establish meaningful benchmarks toolings and standards for the entire zkVM ecosystem.
Try It Out
The tool is open-source: github.com/lita-xyz/benchmark-analyzer. Contributions welcome!
Technical
May 27, 2025
Technical
May 5, 2025