INNER CODE UNIT · Rust

new

tangle-network/blueprint · crates/benchmarking/src/lib.rs:70

    pub fn new(threads: usize, runtime: R) -> Self {
        Self {
            runtime,
            started_at: blueprint_std::time::Instant::now(),
            cores: threads,
        }
    }

    /// Runs the given future on the [`Runtime`].
    ///
    /// # Examples
    ///
    /// ```no_run
    /// use blueprint_benchmarking::{Bencher, TokioRuntime};
    ///
    /// const THREADS: usize = 4;
    ///
    /// let bencher = Bencher::new(THREADS, TokioRuntime);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…