Skip to main content

NexmarkConfig

Struct NexmarkConfig 

Source
pub struct NexmarkConfig {
Show 35 fields pub active_people: usize, pub in_flight_auctions: usize, pub out_of_order_group_size: usize, pub avg_person_byte_size: usize, pub avg_auction_byte_size: usize, pub avg_bid_byte_size: usize, pub hot_seller_ratio: usize, pub hot_auction_ratio: usize, pub hot_bidder_ratio: usize, pub hot_channel_ratio: usize, pub first_event_id: usize, pub first_event_number: usize, pub base_time: u64, pub num_categories: usize, pub auction_id_lead: usize, pub person_proportion: usize, pub auction_proportion: usize, pub bid_proportion: usize, pub first_auction_id: usize, pub first_person_id: usize, pub first_category_id: usize, pub person_id_lead: usize, pub sine_approx_steps: usize, pub us_states: Vec<String>, pub us_cities: Vec<String>, pub hot_channels: Vec<String>, pub hot_urls: Vec<String>, pub first_names: Vec<String>, pub last_names: Vec<String>, pub num_event_generators: usize, pub rate_shape: RateShape, pub rate_period: usize, pub first_rate: usize, pub next_rate: usize, pub us_per_unit: usize,
}
Expand description

Nexmark Configuration

Fields§

§active_people: usize

Maximum number of people to consider as active for placing auctions or bids.

§in_flight_auctions: usize

Average number of auction which should be inflight at any time, per generator.

§out_of_order_group_size: usize

Number of events in out-of-order groups.

1 implies no out-of-order events. 1000 implies every 1000 events per generator are emitted in pseudo-random order.

§avg_person_byte_size: usize

Average idealized size of a ‘new person’ event, in bytes.

§avg_auction_byte_size: usize

Average idealized size of a ‘new auction’ event, in bytes.

§avg_bid_byte_size: usize

Average idealized size of a ‘bid’ event, in bytes.

§hot_seller_ratio: usize

Ratio of auctions for ‘hot’ sellers compared to all other people.

§hot_auction_ratio: usize

Ratio of bids to ‘hot’ auctions compared to all other auctions.

§hot_bidder_ratio: usize

Ratio of bids for ‘hot’ bidders compared to all other people.

§hot_channel_ratio: usize

Ratio of bids for ‘hot’ channels compared to all other channels.

§first_event_id: usize

Event id of first event to be generated.

Event ids are unique over all generators, and are used as a seed to generate each event’s data.

§first_event_number: usize

First event number.

Generators running in parallel time may share the same event number, and the event number is used to determine the event timestamp.

§base_time: u64

Time for first event (ms since epoch).

§num_categories: usize

Auction categories.

§auction_id_lead: usize

Use to calculate the next auction id.

§person_proportion: usize

Person Proportion.

§auction_proportion: usize

Auction Proportion.

§bid_proportion: usize

Bid Proportion.

§first_auction_id: usize

We start the ids at specific values to help ensure the queries find a match even on small synthesized dataset sizes.

§first_person_id: usize

We start the ids at specific values to help ensure the queries find a match even on small synthesized dataset sizes.

§first_category_id: usize

We start the ids at specific values to help ensure the queries find a match even on small synthesized dataset sizes.

§person_id_lead: usize

Use to calculate the next id.

§sine_approx_steps: usize

Use to calculate inter_event_delays for rate-shape sine.

§us_states: Vec<String>

The collection of U.S. statees

§us_cities: Vec<String>

The collection of U.S. cities.

§hot_channels: Vec<String>

The collection of hot_channels.

§hot_urls: Vec<String>

The collection of hot urls.

§first_names: Vec<String>

The collection of first names.

§last_names: Vec<String>

The collection of last names.

§num_event_generators: usize

Number of event generators to use. Each generates events in its own timeline.

§rate_shape: RateShape§rate_period: usize§first_rate: usize§next_rate: usize§us_per_unit: usize

Trait Implementations§

Source§

impl Clone for NexmarkConfig

Source§

fn clone(&self) -> NexmarkConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NexmarkConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NexmarkConfig

Default configuration.

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V