Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/skade

bench/src/lib.rs

//! Library surface of the bench crate.
//!
//! A binary crate's modules can't be imported by integration tests or examples,
//! so the scenarios live here as a lib and `main.rs` is a thin front-end over it.
//! This is what lets `examples/nornir-bench.rs` (the nornir bencher contract) and
//! `tests/` reuse the same `data` / `pipeline` / `scenarios` / `factory` code.

#[allow(dead_code)]
#[allow(dead_code)]
pub mod containers;
// The front-page capability matrix, emitted through the nornir static-capabilities
// bench seam and rendered into `.nornir/README-full.md` from one source of truth.
pub mod capabilities;
pub mod data;
pub mod factory;
// `iceberg::Catalog` adapter over the gRPC front, so the `skade-grpc` bench arm
// runs the same generic scenarios as the embedded/REST arms (the third front).
pub mod grpc_catalog;
#[allow(dead_code)]
pub mod pipeline;
// The Iceberg-REST front was promoted out of this bench crate into the shipped
// `skade-katalog-rest` library (REUSE, not twin). Re-export it under the old
// `rest_shim` name so `main.rs` / `examples/nornir-bench.rs` keep compiling
// against `skade_katalog_bench::rest_shim::spawn` unchanged.
pub use skade_katalog_rest as rest_shim;
pub mod scenarios;
// Shared synthetic workload for the `skade.*` throughput benchers (migrated from
// the old criterion suite `skade/benches/throughput.rs`).
pub mod skade_throughput;
// S3 is gated behind a non-default feature so the default test build (and the
// S3-free REST tests) stay lean. The backend here is `aegir` (bench/aegir), our
// own pure-Rust S3 client — historically chosen because rust-s3's `maybe-async`
// was flipped to `is_sync` graph-wide by older gix (pulled in via nornir), which
// broke rust-s3's async code. gix 0.86 dropped `maybe-async`, so that conflict
// no longer applies; aegir stays because it is smaller and has no such coupling.
#[cfg(feature = "s3")]
pub use skade_katalog::s3_storage;