Created
April 11, 2016 12:29
-
-
Save tomaka/6c4079bda6f4d782db8e4cf450815877 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![feature(test)] | |
extern crate test; | |
use test::Bencher; | |
use std::thread; | |
#[bench] | |
fn thread(b: &mut Bencher) { | |
b.iter(|| { | |
thread::spawn(|| 5).join().unwrap() | |
}) | |
} | |
fn main() {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment