nim-dagger/benchmarks
Jaremy Creechley 741d448409
copying nimcli opts
2024-05-02 18:03:06 +03:00
..
.gitignore Sets up environment for running benchmarks 2024-04-24 15:05:44 +03:00
README.md readme 2024-05-02 16:14:38 +03:00
codex_ark_prover_cli.nim copying nimcli opts 2024-05-02 18:03:06 +03:00
config.nims Sets up environment for running benchmarks 2024-04-24 15:05:44 +03:00
create_circuits.nim cleanup 2024-05-02 16:07:05 +03:00
run_benchmarks.nim cleanup 2024-05-02 16:08:16 +03:00
utils.nim copying nimcli opts 2024-05-02 17:37:05 +03:00

README.md

Benchmark Runner

Modify runAllBenchmarks proc in run_benchmarks.nim to the desired parameters and variations.

Then run it:

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

Generating the circuit files often takes longer than running benchmarks, so caching the results allows re-running the benchmark as needed.

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.