Created
May 29, 2017 00:29
-
-
Save sdleffler/00c3c9a20bcb37c31896fd4b166bcdef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[bench] | |
fn push_front_arenaalloc_strict_10(b: &mut Bencher) { | |
let elements = Arena::new(); | |
let branches = Arena::new(); | |
let trees = Arena::new(); | |
let alloc = StrictArena { | |
elements: &elements, | |
branches: &branches, | |
trees: &trees, | |
}; | |
b.iter(|| { | |
test::black_box((0..10).fold(StrictArenaTree::<i32>::with_allocator(alloc), |acc, i| acc.push_front(i))); | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment