brainheck 0.1.8

Brainheck interpreter written in Rust.
Documentation
//! Module containing benchmarks
#![allow(unused_imports)]

extern crate test;

#[cfg(test)]

use test::test::Bencher;
use brainheck;
use std::io::prelude::*;
use std::fs::File;

#[bench]
fn bench_parser(b: &mut Bencher) {
    let mut file = File::open("bf/helloworld.bf")
        .expect("make sure you are in the right directory");
    let mut helloworld_src = String::new();
    file.read_to_string(&mut helloworld_src)
        .expect("File read failed");
    let fake_std_in = String::new();
    b.iter(|| brainheck(helloworld_src, fake_std_in));
}