fn thread_defaults_low_mid_high(&self) -> Vec<usize> {
        if cfg!(feature = "smoke") {
            return vec![1, 4];
        }

        let uniform_threads = self.thread_defaults_uniform();
        let mut threads = Vec::with_capacity(6);

        for low in uniform_threads.iter().take(2) {
            threads.push(*low);
        }

        let mid = uniform_threads.len() / 2;
        if let Some(e) = uniform_threads.get(mid) {
            threads.push(*e);
        }

        for high in uniform_threads.iter().rev().take(3) {
            threads.push(*high);
        }

        threads.sort_unstable();
        threads.dedup();

        threads
    }
/// Return a set of cores to run benchmark, run fewer total iterations
/// and instead more with high core counts.
Return a set of cores to run benchmark, run fewer total iterations
and instead more with high core counts.
Return a set of cores to run benchmark run fewer total iterations and instead more with high core counts .
fn thread_defaults_low_mid_high(&self) -> Vec<usize> {
        if cfg!(feature = "smoke") {
            return vec![1, 4];
        }
        let uniform_threads = self.thread_defaults_uniform();
        let mut threads = Vec::with_capacity(6);
        for low in uniform_threads.iter().take(2) {
            threads.push(*low);
        }
        let mid = uniform_threads.len() / 2;
        if let Some(e) = uniform_threads.get(mid) {
            threads.push(*e);
        }
        for high in uniform_threads.iter().rev().take(3) {
            threads.push(*high);
        }
        threads.sort_unstable();
        threads.dedup();
        threads
    }
fn thread_defaults_low_mid_high ( & self ) -> Vec < usize > { if cfg ! ( feature " " ) { return vec ! [ 1 4 ] ; } let uniform_threads = self . thread_defaults_uniform ( ) ; let mut threads = Vec :: with_capacity ( 6 ) ; for low in uniform_threads . iter ( ) . take ( 2 ) { threads . push ( * low ) ; } let mid = uniform_threads . len ( ) / 2 ; if let Some ( e ) = uniform_threads . get ( mid ) { threads . push ( * e ) ; } for high in uniform_threads . iter ( ) . rev ( ) . take ( 3 ) { threads . push ( * high ) ; } threads . sort_unstable ( ) ; threads . dedup ( ) ; threads }
Return a set of cores to run benchmark, run fewer total iterations
and instead more with high core counts.
Return a set of cores to run benchmark run fewer total iterations and instead more with high core counts .
&self
&self