Skip to content

Performance regression 2.28 #1055

@rok-cesnovar

Description

@rok-cesnovar

Description:

A performance regression was identified on Discourse: https://discourse.mc-stan.org/t/speed-difference-between-rstan-and-c
cmdstan-for-a-simple-model/25113

The regression is most evident with a trivial model like:

data {
 int N;
}
parameters {
 vector[N] a;
}
model {
 a ~ normal(0,1);
}

Execution times with N=10000:

image

It's much less evident with non-trivial models, but still, something to investigate.

Based on my investigation and investigation by the user rfc on Discourse (EDIT: @fcostin on Github) it has to do with writing output samples: https://discourse.mc-stan.org/t/speed-difference-between-rstan-and-cmdstan-for-a-simple-model/25113/23

It's probably the changes made to work with multiple chains.

EDIT: #987 was confirmed to be the issue.

Current Version:

v2.28.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions