| Crates.io | evalsync |
| lib.rs | evalsync |
| version | 0.1.0 |
| created_at | 2025-12-02 01:19:32.375152+00 |
| updated_at | 2025-12-02 01:19:32.375152+00 |
| description | Experiment synchronization library for benchmark coordination via ZeroMQ |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1960948 |
| size | 38,258 |
Experiment synchronization library for benchmark coordination via ZeroMQ.
use evalsync::{init, ready, wait_for_start, wait_for_end};
fn main() -> Result<(), String> {
// Initialize with experiment ID and client ID
init("my-experiment", "worker-1", true)?;
// Signal ready state
ready()?;
// Wait for manager to signal start
wait_for_start()?;
// ... run benchmark workload ...
// Wait for manager to signal end
wait_for_end()?;
Ok(())
}
Alternatively, use init_env() which reads from environment variables:
EVALSYNC_EXPERIMENT_ID - Experiment identifier
EVALSYNC_CLIENT_ID - Client/worker identifier
EVALSYNC_VERBOSE - Set to "1" for verbose logging
MIT