Skip to content
Snippets Groups Projects
Commit 0f43be24 authored by STEVAN Antoine's avatar STEVAN Antoine :crab:
Browse files

Refactor plot commands (dragoon/komodo!104)

this MR moves run and plot commands from `examples/benches/README.md` to
- `scripts/setup/`: `run.nu` and `plot.nu`
- `scripts/commit/`: `run.nu` and `plot.nu`
- `scripts/recoding/`: `run.nu` and `plot.nu`
- `scripts/fec/`: `run.nu` and `plot.nu`
- `scripts/inbreeding/`: `build.nu`, `run.nu` and `plot.nu`

to generate all the figures at once
```bash
use scripts/setup/run.nu; seq 0 13 | each { 2 ** $in } | run --output data/setup.ndjson
use ./scripts/setup/plot.nu; plot data/setup.ndjson --save ~/setup.pdf

use scripts/commit/run.nu; seq 0 13 | each { 2 ** $in } | run --output data/commit.ndjson
use ./scripts/commit/plot.nu; plot data/commit.ndjson --save ~/commit.pdf

use scripts/recoding/run.nu; seq 0 18 | each { 512 * 2 ** $in } | run --ks [2, 4, 8, 16] --output data/recoding.ndjson
use ./scripts/recoding/plot.nu; plot data/recoding.ndjson --save ~/recoding.pdf

use scripts/fec/run.nu; seq 0 18 | each { 512 * 2 ** $in } | run --ks [2, 4, 8, 16] --output data/fec.ndjson
use ./scripts/fec/plot.nu; plot encoding data/fec.ndjson --save ~/encoding.pdf
use ./scripts/fec/plot.nu; plot decoding data/fec.ndjson --save ~/decoding.pdf
use ./scripts/fec/plot.nu; plot e2e data/fec.ndjson --save ~/e2e.pdf

use ./scripts/fec/plot.nu; plot combined data/fec.ndjson --recoding data/recoding.ndjson --save ~/comparison.pdf
use ./scripts/fec/plot.nu; plot ratio data/fec.ndjson --recoding data/recoding.ndjson --save ~/ratio.pdf

./scripts/inbreeding/build.nu
./scripts/inbreeding/run.nu --output data/inbreeding.nuon
./scripts/inbreeding/plot.nu data/inbreeding.nuon --save ~/inbreeding.pdf
```

> :bulb: **Note**  
> this took around 27min 18sec in total on my machine with 14min 45sec for the inbreeding section only and 12min 33sec for the rest
parent 61a2320e
No related branches found
No related tags found
No related merge requests found
Loading
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