Skip to content

New benchmarks#47

Merged
LDiazN merged 6 commits into
mainfrom
46-investigate-slow-submission
Jul 23, 2026
Merged

New benchmarks#47
LDiazN merged 6 commits into
mainfrom
46-investigate-slow-submission

Conversation

@LDiazN

@LDiazN LDiazN commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

This PR adds extra benchmarks to the project to have a better understanding of performance bottlenecks.

Also a flamegraph library is added to have a better understanding of the cost per function call.

Some of the results we found out the following avg times:

  • verification time (measurement hashing + zkp + Python overhead): 34ms
  • zkp: 13ms
  • hashing (1mb worth of data): 1ms

Here's a screenshot of a generated flamegraph:
image

  • It seems like the Python bindings are introducing a lot of overhead
  • Most time is still spent on verification
  • No Python-related operations are done during verification or hashing, we could potentially release the GIL during this time to allow true parallel execution (see https://pyo3.rs/v0.29.0/parallelism)

closes #46

@LDiazN LDiazN self-assigned this Jul 23, 2026
@LDiazN
LDiazN merged commit f4f7ac6 into main Jul 23, 2026
2 checks passed
@LDiazN
LDiazN deleted the 46-investigate-slow-submission branch July 23, 2026 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate measurement submission slowness

1 participant