about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-03-25 12:04:11 -0700
committerbors <bors@rust-lang.org>2013-03-25 12:04:11 -0700
commit6d4499ce4d948bf7b7b385b40e5b3536507ad3e8 (patch)
tree8db8ed6265295920b856021d30e18596621b6082 /src/rustllvm/RustWrapper.cpp
parent6f4273854438e8f9b034e1342f30392f70c0eaae (diff)
parenta692777224150e2dadb5ec02c6ecd5c10ce0dd98 (diff)
downloadrust-6d4499ce4d948bf7b7b385b40e5b3536507ad3e8.tar.gz
rust-6d4499ce4d948bf7b7b385b40e5b3536507ad3e8.zip
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.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions