summaryrefslogtreecommitdiffstats
path: root/benches/sync_rwlock.rs
diff options
context:
space:
mode:
authorLucio Franco <luciofranco14@gmail.com>2020-08-27 20:05:48 -0400
committerGitHub <noreply@github.com>2020-08-27 20:05:48 -0400
commitd600ab9a8f37e9eff3fa8587069a816b65b6da0b (patch)
tree06d14901604c5c7822b43d9f4973fdccd15509e7 /benches/sync_rwlock.rs
parentd9d909cb4c6d326423ee02fbcf6bbfe5553d2c0a (diff)
rt: Refactor `Runtime::block_on` to take `&self` (#2782)
Co-authored-by: Eliza Weisman <eliza@buoyant.io>
Diffstat (limited to 'benches/sync_rwlock.rs')
-rw-r--r--benches/sync_rwlock.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/benches/sync_rwlock.rs b/benches/sync_rwlock.rs
index 4eca9807..30c66e49 100644
--- a/benches/sync_rwlock.rs
+++ b/benches/sync_rwlock.rs
@@ -3,7 +3,7 @@ use std::sync::Arc;
use tokio::{sync::RwLock, task};
fn read_uncontended(b: &mut Bencher) {
- let mut rt = tokio::runtime::Builder::new()
+ let rt = tokio::runtime::Builder::new()
.core_threads(6)
.threaded_scheduler()
.build()
@@ -22,7 +22,7 @@ fn read_uncontended(b: &mut Bencher) {
}
fn read_concurrent_uncontended_multi(b: &mut Bencher) {
- let mut rt = tokio::runtime::Builder::new()
+ let rt = tokio::runtime::Builder::new()
.core_threads(6)
.threaded_scheduler()
.build()
@@ -51,7 +51,7 @@ fn read_concurrent_uncontended_multi(b: &mut Bencher) {
}
fn read_concurrent_uncontended(b: &mut Bencher) {
- let mut rt = tokio::runtime::Builder::new()
+ let rt = tokio::runtime::Builder::new()
.basic_scheduler()
.build()
.unwrap();
@@ -78,7 +78,7 @@ fn read_concurrent_uncontended(b: &mut Bencher) {
}
fn read_concurrent_contended_multi(b: &mut Bencher) {
- let mut rt = tokio::runtime::Builder::new()
+ let rt = tokio::runtime::Builder::new()
.core_threads(6)
.threaded_scheduler()
.build()
@@ -108,7 +108,7 @@ fn read_concurrent_contended_multi(b: &mut Bencher) {
}
fn read_concurrent_contended(b: &mut Bencher) {
- let mut rt = tokio::runtime::Builder::new()
+ let rt = tokio::runtime::Builder::new()
.basic_scheduler()
.build()
.unwrap();