fn bench_arc_mutex_poh_hash(bencher: &mut Bencher) {
    let poh = Arc::new(Mutex::new(Poh::new(Hash::default(), None)));
    bencher.iter(|| {
        for _ in 0..NUM_HASHES {
            poh.lock().unwrap().hash(1);
        }
    })
}
// Lock on each iteration.  Slowest.
Lock on each iteration.  Slowest.
Lock on each iteration . Slowest .
fn bench_arc_mutex_poh_hash(bencher: &mut Bencher) {
    let poh = Arc::new(Mutex::new(Poh::new(Hash::default(), None)));
    bencher.iter(|| {
        for _ in 0..NUM_HASHES {
            poh.lock().unwrap().hash(1);
        }
    })
}
fn bench_arc_mutex_poh_hash ( bencher : & mut Bencher ) { let poh = Arc :: new ( Mutex :: new ( Poh :: new ( Hash :: default ( ) , None ) ) ) ; bencher . iter ( | | { for _ in 0 .. NUM_HASHES { poh . lock ( ) . unwrap ( ) . hash ( 1 ) ; } } ) }
Lock on each iteration.
Lock on each iteration .
bencher
&mut Bencher