Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 86ba25ea authored by TROPHIME Valentin's avatar TROPHIME Valentin
Browse files

feat(doc): update README with relevant overhead numbers

parent 774618c7
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ There is an example in `examples/overhead.rs` you can try it with the following ...@@ -15,7 +15,7 @@ There is an example in `examples/overhead.rs` you can try it with the following
command : command :
```bash ```bash
cargo run --release --example overhead -- --reactivity-us 10 --n-iter 100 --duration-us 1000 cargo run --release --example overhead -- --reactivity-us 100 --n-iter 1000 --duration-us 10
``` ```
The arguments are : The arguments are :
...@@ -25,15 +25,9 @@ The arguments are : ...@@ -25,15 +25,9 @@ The arguments are :
- Reactivity is the targeted duration (in microseconds) between each - Reactivity is the targeted duration (in microseconds) between each
`yield_now().await` inserted by our iterator. `yield_now().await` inserted by our iterator.
Typical overhead values with a constant amount of work targeted of one seconds Typical overhead values is between 0 and 2% at max for large number of
with no reactivity constraint : iteration. The bad overhead is about 40% and happens when using few iterations
(<50) with short duration tasks (< 10 μs).
| Overhead | Task duration | N tasks | Reactivity |
| -------- | ------------- | ------- | ---------- |
| ~ 1% | 10 ms | 100 | infinity |
| ~ 15% | 1 ms | 1000 | infinity |
| ~ 60% | 100 μs | 10000 | infinity |
| ~ 600% | 10 μs | 100000 | infinity |
## TODO : ## TODO :
...@@ -45,4 +39,3 @@ with no reactivity constraint : ...@@ -45,4 +39,3 @@ with no reactivity constraint :
- `ge, gt, le, lt, eq, ne` ? - `ge, gt, le, lt, eq, ne` ?
- `min, max, min_by, max_by, min_by_key, max_by_key` ? - `min, max, min_by, max_by, min_by_key, max_by_key` ?
- `product, sum, reduce` ? - `product, sum, reduce` ?
- Why so much overhead ?
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment