Skip to main content

euv_performance/
lib.rs

1//! euv-performance
2//!
3//! Reproducible CPU, reactive propagation, retained layout cache,
4//! cold-start TTFF, steady-state allocation, and multi-mode rendering benchmark suite
5//! for the cross-platform euv runtime.
6
7mod allocator;
8mod observability;
9mod stress;
10mod suite;
11mod ttff;
12
13#[cfg(test)]
14#[path = "../tests/mod.rs"]
15mod tests;
16
17pub use {allocator::*, observability::*, stress::*, suite::*, ttff::*};
18
19use std::{
20    alloc::{GlobalAlloc, Layout, System},
21    cell::Cell,
22    collections::{HashMap, HashSet},
23    env::consts::OS,
24    fmt::Write,
25    rc::Rc,
26    sync::{
27        Mutex, MutexGuard, PoisonError,
28        atomic::{AtomicI64, AtomicU64, AtomicUsize, Ordering, fence},
29    },
30    time::{Duration, Instant},
31};
32
33#[cfg(test)]
34use std::{
35    env::temp_dir,
36    fs::{remove_file, write},
37    io::Error,
38    path::PathBuf,
39    process::{Command, Output},
40};
41
42use {
43    euv::*,
44    euv_ui::*,
45    lombok_macros::{Data, Getter, New},
46    serde::{Deserialize, Serialize},
47    serde_json::to_string_pretty,
48};