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

Add deterministic processing mode to examples #830

Merged

Conversation

stephenswat
Copy link
Member

This commit adds an optional deterministic processing mode to the throughput examples. It also makes the seed configurable. The default behaviour of the examples remains as it is now, but passing the --deterministic flag will simply cycle through events in order, and the --random-seed flag allows users to configure their own random seed. If the random seed is 0 (the default) then a time-based seed is used instead.

@stephenswat stephenswat added feature New feature or request examples Changes to the examples labels Jan 30, 2025
@stephenswat stephenswat requested a review from krasznaa January 30, 2025 12:23
This commit adds an optional deterministic processing mode to the
throughput examples. It also makes the seed configurable. The default
behaviour of the examples remains as it is now, but passing the
`--deterministic` flag will simply cycle through events in order, and
the `--random-seed` flag allows users to configure their own random
seed. If the random seed is 0 (the default) then a time-based seed is
used instead.
@stephenswat stephenswat force-pushed the feat/throughput_deterministic branch from ffb0e52 to 3ff43e6 Compare January 30, 2025 12:30
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
4 Security Hotspots

See analysis details on SonarQube Cloud

Copy link
Member

@krasznaa krasznaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@stephenswat stephenswat merged commit 7e7f17c into acts-project:main Jan 30, 2025
28 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Changes to the examples feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants