Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Pull actual data from the server instead of directly return in benchmark #2

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

xx01cyx
Copy link
Member

@xx01cyx xx01cyx commented Apr 30, 2024

Previously, the benchmark runner did not pull any actual data from the server. Instead, it directly terminates the channel after getting the receiver. Running the previous code on ParpulseStorageClientImpl will give out the following error:

thread 'tokio-runtime-worker' panicked at /home/ubuntu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/parpulse-client-0.1.0/src/client.rs:109:39:
called `Result::unwrap()` on an `Err` value: SendError { .. }

This PR fixes the problem. It also takes into account the time that the client pulls ALL data from the server. The client_duration is now calculated as the total time from the client issuing the request till the client gets ALL data from the server.

@xx01cyx xx01cyx requested a review from J-HowHuang April 30, 2024 01:16
@xx01cyx xx01cyx merged commit e321f7c into main Apr 30, 2024
8 checks passed
@xx01cyx xx01cyx deleted the yx/refine-benchmark branch April 30, 2024 17:06
@xx01cyx xx01cyx restored the yx/refine-benchmark branch April 30, 2024 20:23
@unw9527 unw9527 deleted the yx/refine-benchmark branch April 30, 2024 20:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant