use tribles::prelude::valueschemas::*; use tribles::prelude::*; use fake::faker::name::raw::*; use fake::locales::*; use fake::Fake; NS! { pub namespace knights { "39E2D06DBCD9CB96DE5BC46F362CFF31" as loves: GenId; "7D4F339CC4AE0BBA2765F34BE1D108EF" as name: ShortString; "3E0C58AC884072EA6429BB00A1BA1DA4" as title: ShortString; } } fn main() { let mut kb = TribleSet::new(); (0..1000000).for_each(|_| { let lover_a = ufoid(); let lover_b = ufoid(); kb.union(knights::entity!(&lover_a, { name: Name(EN).fake::(), loves: &lover_b })); /*coz::progress!(); kb.union(knights::entity!(lover_b, { name: Name(EN).fake::().try_to_value().unwrap(), loves: lover_a })); coz::progress!(); */ }); }