pub fn seek_base(b: &mut Bencher) {
        let mut path = env::temp_dir();
        path.push("circbuf-rs-test.txt");

        let mut file = OpenOptions::new()
            .read(true)
            .write(true)
            .create(true)
            .truncate(true)
            .open(path.to_str().unwrap())
            .unwrap();

        b.iter(|| {
            file.seek(SeekFrom::Current(1)).unwrap();
        })
    }
// we call seek in iter in both benches above so lets get a base time for it
we call seek in iter in both benches above so lets get a base time for it
we call seek in iter in both benches above so lets get a base time for it
pub fn seek_base(b: &mut Bencher) {
        let mut path = env::temp_dir();
        path.push("circbuf-rs-test.txt");
        let mut file = OpenOptions::new()
            .read(true)
            .write(true)
            .create(true)
            .truncate(true)
            .open(path.to_str().unwrap())
            .unwrap();
        b.iter(|| {
            file.seek(SeekFrom::Current(1)).unwrap();
        })
    }
pub fn seek_base ( b : & mut Bencher ) { let mut path = env :: temp_dir ( ) ; path . push ( " " ) ; let mut file = OpenOptions :: new ( ) . read ( true ) . write ( true ) . create ( true ) . truncate ( true ) . open ( path . to_str ( ) . unwrap ( ) ) . unwrap ( ) ; b . iter ( | | { file . seek ( SeekFrom :: Current ( 1 ) ) . unwrap ( ) ; } ) }
we call seek in iter in both benches above so lets get a base time for it
we call seek in iter in both benches above so lets get a base time for it
b
&mut Bencher
b
&mut Bencher