mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-02 08:01:47 -04:00
Simpler tokio runtime (#140)
* Simpler tokio runtime; 3 threads and no io driver * switch benches over to other runtime
This commit is contained in:
@@ -34,7 +34,12 @@ fn for_all_combos(
|
||||
name: &'static str,
|
||||
mut f: impl FnMut(&Runtime, BenchmarkId, &'static str, ProtocolType)
|
||||
) {
|
||||
let rt = tokio::runtime::Runtime::new().unwrap();
|
||||
let rt = tokio::runtime::Builder::new_multi_thread()
|
||||
.worker_threads(3)
|
||||
.enable_time()
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
for proto in PROTOS {
|
||||
for file in FILES {
|
||||
f(
|
||||
|
||||
Reference in New Issue
Block a user