InterBench Protocol: Blockchain & Interval Benchmark
- InterBench Protocol is a dual-framework benchmark that evaluates both multi-blockchain interoperability platforms and C/C++ interval libraries with standardized, deterministic protocols.
- The blockchain benchmarking component deploys microservices in containers to coordinate cross-chain transactions, synchronize clocks within ±1 ms, and rigorously assess atomicity and performance.
- The interval computation variant employs automated test drivers and scripts across heterogeneous platforms to measure arithmetic correctness, error bounds, and runtime performance.
InterBench Protocol denotes two distinct, rigorously specified benchmarking frameworks: one for evaluating multi-blockchain interoperability-facilitating platforms (IFPs) and another for benchmarking C/C++ interval computation libraries across heterogeneous platforms. Each variant offers a comprehensive architecture, deterministic execution protocol, formally defined metrics, and automation infrastructure to deliver reproducible, quantitative comparisons in their respective domains (Kazemi et al., 2021, &&&1&&&).
1. Architectural Composition
Multi-Blockchain IFP Benchmarking
InterBench is structured as a set of microservices, each deployable within Docker containers or Kubernetes pods, communicating via HTTP/REST or gRPC. The five principal components are:
- Test Orchestrator: Parses benchmark specifications (JSON/YAML), spins up auxiliary services with parameter synchronization, coordinates experiments, and maintains NTP-synchronized clocks within ±1 ms.
- Client Workload Generator (CWG): Generates timestamped, uniquely identified cross-chain requests according to the workload specification, supporting “No_Action,” “Cross-chain Transaction Processing,” and “ReadWrite_Extreme” types, and up to 10,000 concurrent requests using Poisson, constant-rate, or bursty arrivals.
- IFP Interface Layer (IIL): Translates generic benchmark requests to IFP-native APIs (e.g., ICON JSON-RPC, AION REST), logs submission and commit timestamps, and collects per-node resource metrics.
- Transaction Behavior Monitor (TBM): Verifies atomicity by tracking chain events, matches transactions across source and destination ledgers, and detects anomalies such as fork reorganizations and double-spend attempts.
- Visualized Results Reporter (VSR): Aggregates experiment logs and presents time-series, CDFs, and heatmaps via web dashboards or CSV export.
The microservice pipeline is: Test Orchestrator → {CWG, IIL, TBM, VSR} → IFP network.
Interval Computation Library Benchmarking
The InterBench harness orchestrates:
- Test Driver: Built per target environment (OS, architecture, compiler) using CMake or MSBuild, dynamically linking C/C++ interval libraries as plugins.
- Test Categories: Basic arithmetic, transcendental, composite (hand-crafted/randomized), and application-level expressions, each evaluated over precomputed input sets.
- Automation Scripts: Python tools dispatch build (
run_benchmark.py), aggregate results (aggregate.py), and generate summary plots (plot.py). - Platform Matrix: Evaluates across x86-64/ARM64 on Windows/macOS/Linux; includes platform- and library-specific configuration files.
2. Formal Benchmark Protocols
IFP Cross-Chain Protocol
Each run executes a four-phase, deterministic protocol (pseudocode representation):
- Initialize services and synchronize configuration.
- Generate transaction workload (CWG).
- Parallel submission: For each request, record
t_submit_start, submit via IIL, and log submit events. - Status polling: Query transaction status until committed/aborted; record
t_commit_end, verify atomicity, and capture metrics. - TBM aggregates security data.
- VSR compiles final plots and statistics.
Interval Library Protocol
For each platform-library-expression triplet:
- Build the library plugin and test driver.
- For Nᶜ = 1,000,000 (correctness) or Nᵖ = 1,000 × 10,000 (performance) inputs, evaluate and log results.
- Compare output intervals against exact references computed with GMP and Mathematica: accept if the produced interval encloses the exact value.
- Summarize width, error, and timing statistics; output CSV and JSON per test.
3. Metric Definitions
IFP Performance and Security
- Throughput ():
- Per-request Latency ():
- Mean and Percentile Latencies: , is the minimal s.t.\
- Consensus Finality Time (): Submission to block-depth- confirmation.
- Atomicity ():
- Consistency (): Normalized fork events per block.
- Double-spend Resistance ():
- Attack-tolerance ():
- Resource Utilization: sampled every
Interval Arithmetic Evaluation
- Addition:
- Subtraction:
- Multiplication:
- Division (if ):
- Interval Width:
- Midpoint:
- Error bound: , where exact value.
- Performance: Per-input runtime (ns), mean/median/stddev per batch.
- Statistical Reports: % correct intervals, width distributions, histogram ratios to reference width.
4. Supported Workloads, Scenarios, and Platforms
| Application Domain | Principal Workloads/Tests | Supported Platforms |
|---|---|---|
| Blockchain IFP | No_Action, CTP, RWE, Adversarial (DDoS, Sybil, Network Partition) | ICON, AION, Wanchain, Fabric, Ethereum, (planned Corda) |
| Interval Libraries | Basic/Transcendental/Composite expressions, CCD queries | x86-64/ARM64, Windows/macOS/Linux, MSVC/Clang/GCC |
IFP benchmarking includes baseline, scaling, read/write mix, smart contract logic transfer, and multiple adversarial injections (e.g., 200 Mbps DDoS, 30% Sybil insertion, link failures). Interval computation benchmarking orchestrates basic to application-level expressions, running exhaustive and performance-tuned evaluations under diverse system configurations (Kazemi et al., 2021, Tang et al., 2021).
5. Automation and Implementation
IFP InterBench
- Repositories and Components: Open-source under Apache 2.0. Python asyncio orchestrator (/orchestrator), Go workload generator (/cw_gen), Java IFP adapters (/ifp_adapters), Node.js TBM (/tbm), React/D3-based reporter (/vrs).
- Automation: Deployable via Docker Compose, Helm; command-line launching (“interbench” CLI) from YAML.
- Data Aggregation: All events logged in JSON-lines to ElasticSearch; aggregation via Spark jobs, visualized through Kibana; CSV/JSON exports standardize metrics per run.
Interval Computation InterBench
- Directory Structure: Standard layout with config/, expressions/, inputs/, reference/, build/, results/, and scripts/.
- Integration: New interval libraries register via libraries.json, specifying headers, CMake hooks, namespaces, and modes; example code fragments ensure API conformance.
- Build Automation: Python scripts invoke platform-appropriate builds, execute, and collect outputs.
- Reporting: Post-run aggregation and plotting tools enable bar charts, runtime lines, and histograms for all benchmarks.
6. Real-World Use and Comparative Analyses
Outcomes from InterBench execution—by maintaining identical benchmark specifications—facilitate side-by-side performance, security, and scalability analyses. For IFPs, architects can trace trade-offs such as throughput versus atomicity (e.g., with vs.\ under adversarial conditions), plot percentile latency against concurrency, or chart attack-tolerance degradation () under stress. For interval arithmetic, one can systematically compare correctness rates, error distributions, and runtime profiles of competing libraries per system configuration (Kazemi et al., 2021, Tang et al., 2021).
7. Extensibility and Standardization
Both variants employ configuration-driven extensibility. In IFP benchmarking, new relay and blockchain adapters are pluggable, with all microservices independently deployable and scalable. For interval computation, library integration necessitates only minimal C++ API compliance and an update to configuration JSON files; the protocol’s data-driven workflow underpins rapid onboarding and uniform evaluation of future arithmetic systems. The standardized metric definitions and open-source automation enable reproducible, fair, and transparent benchmarking across diverse research and production settings.
References: (Kazemi et al., 2021) Towards Automated Benchmark Support for Multi-Blockchain Interoperability-Facilitating Platforms (Tang et al., 2021) A Cross-Platform Benchmark for Interval Computation Libraries