turn of mimalloc security features, seemingly improving performance

This commit is contained in:
Joakim Frostegård 2020-04-06 14:38:59 +02:00
parent c3c634189d
commit 51f2fcea45
3 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ name = "aquatic"
bittorrent_udp = { path = "../bittorrent_udp" }
dashmap = "3"
indexmap = "1"
mimalloc = "0.1"
mimalloc = { version = "0.1", default-features = false }
mio = { version = "0.7", features = ["udp", "os-poll", "os-util"] }
net2 = "0.2"
rand = { version = "0.7", features = ["small_rng"] }

View file

@ -17,7 +17,7 @@ name = "plot_pareto"
[dependencies]
aquatic = { path = "../aquatic" }
indicatif = "0.14"
mimalloc = "0.1"
mimalloc = { version = "0.1", default-features = false }
num-format = "0.4"
plotly = "0.4"
rand_distr = "0.2"

View file

@ -4,9 +4,9 @@
//! ```
//! ## Average results over 100 rounds
//!
//! Connect handler: 3 246 351 requests/second, 308.21 ns/request
//! Announce handler: 348 740 requests/second, 2873.65 ns/request
//! Scrape handler: 1 115 949 requests/second, 898.17 ns/request
//! Connect handler: 3 459 722 requests/second, 289.22 ns/request
//! Announce handler: 390 674 requests/second, 2568.55 ns/request
//! Scrape handler: 1 039 374 requests/second, 963.02 ns/request
//! ```
use std::time::{Duration, Instant};