This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / knot2 / crates / knot-sim / src / lib.rs
668 B 25 lines
1mod harness; 2mod realdata; 3pub mod trace; 4mod workload; 5 6pub use harness::OpenError; 7pub use realdata::run as run_realdata; 8pub use trace::{ 9 OperationIndex, Outcome, Projection, RepoCollaborators, RoundNumber, Snapshot, Step, Trace, 10}; 11 12use std::sync::Arc; 13 14use harness::Harness; 15 16pub async fn run(seed: u64, rounds: u32) -> Trace { 17 let stranger_pool = (rounds as usize) * 2 + 16; 18 let harness = Arc::new(Harness::build(seed, stranger_pool)); 19 let plan = workload::plan(seed, rounds, harness.subjects.len()); 20 workload::execute(harness, seed, plan).await 21} 22 23pub fn predict(seed: u64, rounds: u32) -> Projection { 24 workload::predict(seed, rounds) 25}