Skip to content

Change in release build performance after running cargo asm #239

@space-alien

Description

@space-alien

After running cargo asm, I am noticing a very significant performance drop when running my release build, which I do not understand.

Given this, I wonder whether cargo asm is building my project in a different way to the normal release build. My primary concen is that the asm being produced by cargo asm may not be the same as the normal release build, since I imagine that the performance drop would indicate a significant difference in the compiled output.

Toolchain info:
nightly-x86_64-pc-windows-msvc (default) rustc 1.56.0-nightly (d3e2578c3 2021-08-21)

My process:
(1) Regular release build:
cargo build --release
target/release/myproject.exe -> Normal (i.e. fast) performance

(2) Run cargo asm:
cargo asm
target/release/myproject.exe -> Performance drops substantially (in my case, the normal release build is 50% faster)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions