| 1 |
# Wanted |
| 2 |
|
| 3 |
It would be great to have the following features added to Divan. If you have |
| 4 |
ideas to expand this list, please [find](https://github.com/nvzqz/divan/discussions) |
| 5 |
or [create](https://github.com/nvzqz/divan/discussions/new?category=ideas) a |
| 6 |
discussion first. |
| 7 |
|
| 8 |
- Async benchmarks |
| 9 |
|
| 10 |
- Baseline benchmark |
| 11 |
- Should match baselines across equal generic types and constants |
| 12 |
- Idea: |
| 13 |
```rs |
| 14 |
#[divan::bench] |
| 15 |
fn old() { ... } |
| 16 |
|
| 17 |
#[divan::bench(baseline = old)] |
| 18 |
fn new() { ... } |
| 19 |
``` |
| 20 |
|
| 21 |
- Cross-device: run benchmarks on other devices and report the data on the local |
| 22 |
device |
| 23 |
|
| 24 |
- HTML output |
| 25 |
|
| 26 |
- CSV output |
| 27 |
|
| 28 |
- Custom counters |
| 29 |
|
| 30 |
- Time complexity of counters |
| 31 |
- Also space complexity when measuring heap allocation |
| 32 |
|
| 33 |
- Measure heap allocations |
| 34 |
- Custom [`GlobalAlloc`](https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html) |
| 35 |
that wraps another `GlobalAlloc`, defaulting to [`System`](https://doc.rust-lang.org/std/alloc/struct.System.html) |
| 36 |
|
| 37 |
- Custom timers |
| 38 |
|
| 39 |
- Timer for kernel/user mode |
| 40 |
- Unix: |
| 41 |
- [`getrusage(2)`](https://pubs.opengroup.org/onlinepubs/9699919799/functions/getrusage.html) |
| 42 |
- Per-thread: |
| 43 |
- Linux/FreeBSD/OpenBSD: [`RUSAGE_THREAD`](https://man7.org/linux/man-pages/man2/getrusage.2.html) |
| 44 |
- macOS/iOS: [`thread_info(mach_thread_self(), ...)`](https://www.gnu.org/software/hurd/gnumach-doc/Thread-Information.html) |
| 45 |
- Windows: |
| 46 |
- [`GetProcessTimes`](https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getprocesstimes) |
| 47 |
- [`GetThreadTimes`](https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getthreadtimes) |