]> git.lizzy.rs Git - rust.git/commit
auto merge of #5424 : luqmana/rust/inline-rt, r=brson
authorbors <bors@rust-lang.org>
Mon, 25 Mar 2013 19:04:11 +0000 (12:04 -0700)
committerbors <bors@rust-lang.org>
Mon, 25 Mar 2013 19:04:11 +0000 (12:04 -0700)
commit6d4499ce4d948bf7b7b385b40e5b3536507ad3e8
tree8db8ed6265295920b856021d30e18596621b6082
parent6f4273854438e8f9b034e1342f30392f70c0eaae
parenta692777224150e2dadb5ec02c6ecd5c10ce0dd98
auto merge of #5424 : luqmana/rust/inline-rt, r=brson

As per #2521. Inlining seems to improve performance slightly:

                 Inlined          Not Inlined
    x86:         13.5482            14.4112
    x86_64:      17.4712            18.0696

(Average of 5 runs timed with `time`)

```Rust

fn foo() -> int {
    int::from_str(~"28098").unwrap()
}

fn main() {
    for 1000000.times {
        foo();
        foo();
        foo();
        foo();
        foo();
    }
}
```

All run on:

    Linux 3.2.0-0.bpo.4-amd64 #1 SMP Debian 3.2.35-2~bpo60+1 x86_64 GNU/Linux

The MIPS and ARM bits I didn't inline since I'm not as familiar with them and I also can't test them. All green on try.