| Crates.io | stress-cpu |
| lib.rs | stress-cpu |
| version | 0.5.0 |
| created_at | 2024-12-02 02:14:16.066002+00 |
| updated_at | 2024-12-02 03:59:17.17242+00 |
| description | Utility that simulates a high cpu load. |
| homepage | |
| repository | https://github.com/fade2black/stress-cpu |
| max_upload_size | |
| id | 1468122 |
| size | 14,341 |
A simple Rust library for simulating a high cpu load. You can stress your CPU by specifying the number of workers and timeout in seconds. Each worker corresponds a native OS thread. For example,
fn main() {
stress_cpu::stress(4, 30);
}