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

Make benchmarks more accurate #1484

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Make benchmarks more accurate #1484

wants to merge 5 commits into from

Conversation

erikvanoosten
Copy link
Collaborator

... by adding a 5ms delay in each call to the underlying java consumer. This solves the problem that the embedded kafka broker can respond virtually immediately, while in reality there is almost always a network hop.

Since the calls of the underlying java consumer do not correspond 1:1 to network traffic, this is a crude approximation. Nevertheless, we expect that redundant consumer calls will become visible in the benchmarks.

Also: remove a duplicate benchmark.

Copy link
Collaborator

@svroonland svroonland left a comment

Choose a reason for hiding this comment

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

If I'm understanding it right, this is applied to all benchmarks so doesn't give zio-kafka an unfair advantage, just a more realistic comparison, right?

@erikvanoosten
Copy link
Collaborator Author

If I'm understanding it right, this is applied to all benchmarks so doesn't give zio-kafka an unfair advantage, just a more realistic comparison, right?

Yes, that is correct.

@erikvanoosten erikvanoosten force-pushed the simulate-network branch 2 times, most recently from a4eab98 to 2656123 Compare February 25, 2025 20:21
... by adding a 5ms delay in each call to the underlying java consumer. This solves the problem that the embedded kafka broker can respond virtually immediately, while in reality there is almost always a network hop.

Since the calls of the underlying java consumer do not correspond 1:1 to network traffic, this is a crude approximation. Nevertheless, we expect that redundant consumer calls will become visible in the benchmarks.

Also: remove a duplicate benchmark.
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.

2 participants