Skip to content
Merged
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
7 changes: 7 additions & 0 deletions perf/bench/corosio/accept_churn_bench.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ bench::benchmark_result bench_sequential_churn(
perf::print_latency_stats( latency_stats, "Cycle latency" );
std::cout << "\n";

acc.close();

return bench::benchmark_result( "sequential" )
.add( "cycles", static_cast<double>( cycles ) )
.add( "elapsed_s", elapsed )
Expand Down Expand Up @@ -249,6 +251,9 @@ bench::benchmark_result bench_concurrent_churn(
std::cout << " Avg p99 latency: "
<< perf::format_latency( total_p99 / num_loops ) << "\n\n";

for( auto& a : acceptors )
a.close();

return bench::benchmark_result( "concurrent_" + std::to_string( num_loops ) )
.add( "num_loops", num_loops )
.add( "total_cycles", static_cast<double>( total_cycles ) )
Expand Down Expand Up @@ -351,6 +356,8 @@ bench::benchmark_result bench_burst_churn(
perf::print_latency_stats( burst_stats, "Burst latency" );
std::cout << "\n";

acc.close();

return bench::benchmark_result( "burst_" + std::to_string( burst_size ) )
.add( "burst_size", burst_size )
.add( "total_accepted", static_cast<double>( total_accepted ) )
Expand Down
Loading