Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark 10000 votes #95

Closed
wants to merge 2 commits into from
Closed

Benchmark 10000 votes #95

wants to merge 2 commits into from

Conversation

ineiti
Copy link
Member

@ineiti ineiti commented Jan 26, 2024

In order to being able to do 10000 votes, this needs:

  • store up to 100 ballots in a block
  • only reference those blocks from the form
  • increased timeouts
  • for testing, 'cheating' by stuffing ballots, else it is very slow to wait for all votes

This depends on c4dt/dela#17

Closes #55

  • add a brief description of your changes here
  • assign the PR to yourself, or to the person(s) working on it
  • start in draft mode and in progress pipeline in the project (if applicable)
  • if applicable, add this PR to its related issue by one of the special keywords Closing keywords
  • once it's ready
    • put it in the Review or Ready4Merge pipeline in the project (if applicable)
    • remove draft
    • assign a reviewer

@ineiti ineiti self-assigned this Jan 26, 2024
This PR separates the ballots from the forms.
This allows to run adding a new ballot much faster.
When there are more than 100 ballots, this gets very important:
adding a 1000th ballot can take 1s, a 10'000th ballot 10s.

Using this PR, up to the 10'000th ballot it only takes 100ms.
- running single vote ballots
- running multiple vote ballots to test many (10000) votes
@ineiti
Copy link
Member Author

ineiti commented Mar 6, 2024

Done in main branch

@ineiti ineiti closed this Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Making (De)serializing the election contract faster
1 participant