I'd like to benchmark a couple of methods and I'm currently using Rust 1.3. With the most basic test
extern crate test;
use test::Bencher;
#[bench]
fn it_benches(b: &mut Bencher){
b.iter(|| {
assert!(true)
});
}
and running cargo bench I get the following error:
error: use of unstable library feature 'test'
extern crate test;
If I try to add the
#![feature(test)]
line I see in some documents I get the following error
error: #[feature] may not be used on the stable release channel
#![feature(test)]
Is there a benchmarking option for Rust 1.3 users?