udp: remove glommio implementation

This commit is contained in:
Joakim Frostegård 2021-11-14 21:59:06 +01:00
parent 7b20942d0f
commit 4641dd29f2
22 changed files with 465 additions and 1202 deletions

View file

@ -13,6 +13,7 @@ name = "aquatic_udp_bench"
anyhow = "1"
aquatic_cli_helpers = "0.1.0"
aquatic_udp = "0.1.0"
aquatic_udp_protocol = "0.1.0"
crossbeam-channel = "0.5"
indicatif = "0.16.2"
mimalloc = { version = "0.1", default-features = false }

View file

@ -6,9 +6,9 @@ use indicatif::ProgressIterator;
use rand::Rng;
use rand_distr::Pareto;
use aquatic_udp::common::handlers::*;
use aquatic_udp::common::*;
use aquatic_udp::config::Config;
use aquatic_udp_protocol::*;
use crate::common::*;
use crate::config::BenchConfig;

View file

@ -7,6 +7,7 @@
//! Scrape: 1 873 545 requests/second, 533.75 ns/request
//! ```
use aquatic_udp::handlers::run_request_worker;
use crossbeam_channel::unbounded;
use num_format::{Locale, ToFormattedString};
use rand::{rngs::SmallRng, thread_rng, Rng, SeedableRng};
@ -15,8 +16,7 @@ use std::time::Duration;
use aquatic_cli_helpers::run_app_with_cli_and_config;
use aquatic_udp::common::*;
use aquatic_udp::config::Config;
use aquatic_udp::other::common::*;
use aquatic_udp::other::handlers;
use aquatic_udp_protocol::*;
use config::BenchConfig;
@ -52,7 +52,7 @@ pub fn run(bench_config: BenchConfig) -> ::anyhow::Result<()> {
let response_sender = response_sender.clone();
::std::thread::spawn(move || {
handlers::run_request_worker(state, config, request_receiver, response_sender)
run_request_worker(state, config, request_receiver, response_sender)
});
}

View file

@ -6,9 +6,9 @@ use indicatif::ProgressIterator;
use rand::Rng;
use rand_distr::Pareto;
use aquatic_udp::common::handlers::*;
use aquatic_udp::common::*;
use aquatic_udp::config::Config;
use aquatic_udp_protocol::*;
use crate::common::*;
use crate::config::BenchConfig;