dscale 0.4.0

A fast & deterministic simulation framework for testing and benchmarking distributed systems
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::{cmp::Reverse, collections::BinaryHeap};

use crate::{Jiffies, global::local_access::EventBatch};

pub(crate) type TaskId = (Jiffies, usize);

// Sorting by arrival time, then by id
pub(super) type TaskIndex = BinaryHeap<Reverse<TaskId>>;

pub(crate) struct TaskResult {
    pub(crate) id: TaskId,
    pub(crate) rank: usize,
    pub(crate) events: EventBatch,
}