prefetch 0.2.0

prefetch provides a type-safe wrapper around LLVM's prefetch intrinsic
Documentation
1
2
3
4
5
6
7
8
9
b0VIM 7.4�Y�|Daviaweinstock-debian~avi/Documents/github_repos/prefetch/src/benchmarks.rs
3210#"! Utp/ad�	�
/����X-,���m!�
�
�
�
�
�
�
b
a
X
.
�����oeMECB9
����)
�
�
�
�
�
�
}    });        black_box(sum);        }            sum += *x as u64;        for x in data.iter() {        prefetch::prefetch::<prefetch::Read, prefetch::Medium, prefetch::Data, _>(data.as_ptr());        let mut sum = 0u64;    b.iter(|| {    let data = (0..2*CACHE_LINE_SIZE).map(|i| (i % 256) as u8).collect::<Vec<u8>>();fn vec_sum_with_prefetch(b: &mut Bencher) {#[bench]}    });        black_box(sum);        }            sum += *x as u64;        for x in data.iter() {        let mut sum = 0u64;    b.iter(|| {    let data = (0..2*CACHE_LINE_SIZE).map(|i| (i % 256) as u8).collect::<Vec<u8>>();fn vec_sum_no_prefetch(b: &mut Bencher) {#[bench]const CACHE_LINE_SIZE: usize = 64;use test::{Bencher, black_box};use prefetch;*/   limitations under the License.   See the License for the specific language governing permissions and   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   distributed under the License is distributed on an "AS IS" BASIS,   Unless required by applicable law or agreed to in writing, software       http://www.apache.org/licenses/LICENSE-2.0   You may obtain a copy of the License at   you may not use this file except in compliance with the License.   Licensed under the Apache License, Version 2.0 (the "License");Copyright 2016 Avi Weinstock/*