dscale 0.5.3

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

use crate::{
    Jiffies, global::local_access::InjestableEventBatch, runners::scalable::lazy_heap::LazyHeap,
};

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

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

pub(crate) struct TaskResult {
    pub(crate) id: TaskId,
    pub(crate) pid: usize,
    pub(crate) events: InjestableEventBatch,
}