Files
pezkuwi-sdk/bizinikiwi/client/tracing/benches/interest_cache_multithreaded.rs
T
pezkuwichain 1c0e57d984 feat: Rebrand Polkadot/Substrate references to PezkuwiChain
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.
2025-12-14 00:04:10 +03:00

45 lines
1.2 KiB
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 multithreaded logging with interest cache configuration from INTEREST_CACHE env var.
//!
//! Usage:
//! ```
//! INTEREST_CACHE=lru_cache_size=1024,min_verbosity=debug cargo bench --bench interest_cache_multithreaded
//! INTEREST_CACHE=default cargo bench --bench interest_cache_multithreaded
//! INTEREST_CACHE=disabled cargo bench --bench interest_cache_multithreaded
//! ```
use criterion::{criterion_group, criterion_main, Criterion};
mod common;
fn bench_multithreaded(c: &mut Criterion) {
common::init_logger();
let mut group = c.benchmark_group("multithreaded");
group.bench_function("8_threads", |b| {
b.iter(|| {
let handles: Vec<_> = (0..8)
.map(|thread_id| {
std::thread::spawn(move || {
for i in 0..1000 {
log::debug!(target: "bizinikiwi", "thread {} msg {}", thread_id, i);
log::trace!(target: "runtime", "thread {} trace {}", thread_id, i);
}
})
})
.collect();
for handle in handles {
handle.join().unwrap();
}
})
});
group.finish();
}
criterion_group!(benches, bench_multithreaded);
criterion_main!(benches);