34 lines
1.0 KiB
Markdown
Raw Normal View History

2024-05-02 16:13:24 +03:00
2024-05-02 18:20:05 +03:00
## Benchmark Runner
2024-05-02 16:13:24 +03:00
Modify `runAllBenchmarks` proc in `run_benchmarks.nim` to the desired parameters and variations.
Then run it:
```sh
nim c -r run_benchmarks
```
By default all circuit files for each combinations of circuit args will be generated in a unique folder named like:
nim-codex/benchmarks/circuit_bench_depth32_maxslots256_cellsize2048_blocksize65536_nsamples9_entropy1234567_seed12345_nslots11_ncells512_index3
2024-05-02 16:14:38 +03:00
Generating the circuit files often takes longer than running benchmarks, so caching the results allows re-running the benchmark as needed.
2024-05-02 16:13:24 +03:00
You can modify the `CircuitArgs` and `CircuitEnv` objects in `runAllBenchMarks` to suite your needs. See `create_circuits.nim` for their definition.
By it runs all commands relative to the `nim-codex` repo. This simplifies finding the correct circuit includes paths, etc. `CircuitEnv` sets all of this.
2024-05-02 18:20:05 +03:00
## Codex Ark Circom CLI
2024-05-02 22:40:43 +03:00
Runs Codex's prover setup with Ark / Circom.
2024-05-02 18:20:05 +03:00
Compile:
```sh
nim c codex_ark_prover_cli.nim
```
2024-05-02 22:40:43 +03:00
Run to see usage:
2024-05-02 18:20:05 +03:00
```sh
./codex_ark_prover_cli.nim -h
```