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 fail early #595

Merged
merged 2 commits into from
Dec 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/core/asio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ ABSL_FLAG(bool, use_ca_bundle_crt,
#endif // HAVE_BUILTIN_CA_BUNDLE_CRT

std::ostream& operator<<(std::ostream& o, asio::error_code ec) {
#ifdef _WIN32
return o << ec.message() << " value: " << ec.value();
#else
return o << ec.message();
#endif
}

static void print_openssl_error() {
Expand Down
12 changes: 3 additions & 9 deletions src/ss_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,17 +247,11 @@ class SsEndToEndBM : public benchmark::Fixture {
asio::post(io_context_, [this, &m, &done]() {
std::lock_guard<std::mutex> lk(m);
auto ec = StartContentProvider(GetReusableEndpoint(), SOMAXCONN);
if (ec) {
return;
}
CHECK(!ec) << "Connection (content-provider) start cp failed " << ec;
ec = StartServer(GetReusableEndpoint(), SOMAXCONN);
if (ec) {
return;
}
CHECK(!ec) << "Connection (content-provider) start yass server failed " << ec;
ec = StartLocal(server_endpoint_, GetReusableEndpoint(), SOMAXCONN);
if (ec) {
return;
}
CHECK(!ec) << "Connection (content-provider) start yass local failed " << ec;
done = true;
});
while (true) {
Expand Down
Loading