Trait bustle::Collection[][src]

pub trait Collection: Send + Sync + 'static {
    type Handle: CollectionHandle;
    fn with_capacity(capacity: usize) -> Self;
fn pin(&self) -> Self::Handle; }

A collection that can be benchmarked by bustle.

Any thread that performs operations on the collection will first call pin and then perform collection operations on the Handle that is returned. pin will not be called in the hot loop of the benchmark.

Associated Types

type Handle: CollectionHandle[src]

A thread-local handle to the concurrent collection under test.

Loading content...

Required methods

fn with_capacity(capacity: usize) -> Self[src]

Allocate a new instance of the benchmark target with the given capacity.

fn pin(&self) -> Self::Handle[src]

Pin a thread-local handle to the concurrent collection under test.

Loading content...

Implementors

Loading content...