Skip to main content

Crate elara_bench

Crate elara_bench 

Source
Expand description

§ELARA Benchmark Suite

Production-grade benchmark suite for the ELARA Protocol using criterion for statistical analysis and performance tracking.

§Overview

This crate provides comprehensive benchmarks for all critical components:

  • Wire protocol encoding/decoding
  • Cryptographic operations
  • State reconciliation
  • Time engine operations

§Usage

Run all benchmarks:

cargo bench --package elara-bench

Run specific benchmark:

cargo bench --package elara-bench --bench wire_protocol

§Configuration

Benchmarks can be configured via BenchmarkConfig for custom scenarios.

Structs§

BenchmarkConfig
Configuration for benchmark execution

Constants§

EVENT_COUNTS
Standard event counts for state benchmarks
PAYLOAD_SIZES
Standard payload sizes for benchmarking (64B to 1KB for wire protocol)
WIRE_PAYLOAD_SIZES
Wire protocol payload sizes (limited by MTU)