1c0e57d984
This commit systematically rebrands various references from Parity Technologies' Polkadot/Substrate ecosystem to PezkuwiChain within the kurdistan-sdk. Key changes include: - Updated external repository URLs (zombienet-sdk, parity-db, parity-scale-codec, wasm-instrument) to point to pezkuwichain forks. - Modified internal documentation and code comments to reflect PezkuwiChain naming and structure. - Replaced direct references to with or specific paths within the for XCM, Pezkuwi, and other modules. - Cleaned up deprecated issue and PR references in various and files, particularly in and modules. - Adjusted image and logo URLs in documentation to point to PezkuwiChain assets. - Removed or rephrased comments related to external Polkadot/Substrate PRs and issues. This is a significant step towards fully customizing the SDK for the PezkuwiChain ecosystem.
34 lines
994 B
Rust
34 lines
994 B
Rust
// This file is part of Bizinikiwi.
|
|
//
|
|
// Copyright (C) Parity Technologies (UK) Ltd.
|
|
// SPDX-License-Identifier: GPL-3.0-or-later WITH Classpath-exception-2.0
|
|
|
|
//! Benchmark diverse targets with interest cache configuration from INTEREST_CACHE env var.
|
|
//!
|
|
//! Usage:
|
|
//! ```
|
|
//! INTEREST_CACHE=lru_cache_size=1024,min_verbosity=debug cargo bench --bench interest_cache_diverse
|
|
//! INTEREST_CACHE=default cargo bench --bench interest_cache_diverse
|
|
//! INTEREST_CACHE=disabled cargo bench --bench interest_cache_diverse
|
|
//! ```
|
|
|
|
use criterion::{criterion_group, criterion_main, Criterion};
|
|
|
|
mod common;
|
|
|
|
fn bench_diverse_targets(c: &mut Criterion) {
|
|
common::init_logger();
|
|
c.bench_function("diverse_targets", |b| {
|
|
b.iter(|| {
|
|
for i in 0..1000 {
|
|
let target = format!("module_{}", i % 50);
|
|
log::debug!(target: &target, "message {}", i);
|
|
log::trace!(target: &target, "trace {}", i);
|
|
}
|
|
})
|
|
});
|
|
}
|
|
|
|
criterion_group!(benches, bench_diverse_targets);
|
|
criterion_main!(benches);
|