Skip to content

add mutex benches vs std + parking_lot #530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
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
Prev Previous commit
cargo fmt
Signed-off-by: Yoshua Wuyts <[email protected]>
  • Loading branch information
yoshuawuyts committed Nov 13, 2019
commit 2378a68b50ee72d6a2b3a6c8a9e65f5aab0d65b3
10 changes: 5 additions & 5 deletions benches/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ mod async_std {
}
}

mod std {
mod std {
extern crate test;

use std::sync::{Arc, Mutex};
Expand Down Expand Up @@ -80,13 +80,13 @@ mod async_std {
t.join().unwrap();
}
}
}
}

mod parking_lot {
mod parking_lot {
extern crate test;

use std::sync::Arc;
use parking_lot::Mutex;
use std::sync::Arc;
use std::thread;
use test::Bencher;

Expand Down Expand Up @@ -122,4 +122,4 @@ mod async_std {
t.join().unwrap();
}
}
}
}