Skip to content

Instantly share code, notes, and snippets.

@tomaka
Created April 11, 2016 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomaka/6c4079bda6f4d782db8e4cf450815877 to your computer and use it in GitHub Desktop.
Save tomaka/6c4079bda6f4d782db8e4cf450815877 to your computer and use it in GitHub Desktop.
#![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