ralloc 1.0.0

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

extern crate ralloc;
extern crate test;

#[bench]
fn bench_box(b: &mut test::Bencher) {
    b.iter(|| {
        let _bx1 = Box::new(0xF000D);
        let _bx2 = Box::new(0xF0002);

        "abc".to_owned().into_boxed_str()
    });
}