ralloc 1.0.0

An efficient alternative platform-agnostic allocator.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![feature(test)]

extern crate ralloc;
extern crate test;

#[bench]
fn bench_vec(b: &mut test::Bencher) {
    b.iter(|| {
        let mut stuff = Vec::with_capacity(10);

        for i in 0..10000 { stuff.push(i) }

        stuff.reserve(100000);

        stuff
    });
}