doc: add desktop zk benchmarks

This commit is contained in:
zero
2024-03-24 12:14:10 +01:00
parent baa0146834
commit ae0e8f6ff3
3 changed files with 40 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ fn bench_zk() -> Result<()> {
let public_inputs = vec![a + b, a * b, a - b];
// I tried cargo bench, but there's no way to display k=X for each individual bench
// TODO: make a benchmark group and use bench_with_input (cargo bench)
// see https://github.com/getsentry/relay/blob/master/relay-cardinality/benches/redis_impl.rs#L137-L165
for k in 11..20 {
println!("Benchmarking k={}", k);