Skip to content

add generate_quantities timing support#1168

Open
avehtari wants to merge 1 commit intomasterfrom
gq-timing
Open

add generate_quantities timing support#1168
avehtari wants to merge 1 commit intomasterfrom
gq-timing

Conversation

@avehtari
Copy link
Copy Markdown
Member

Closes #1070 after the next CmdStan release.

CmdStan develop version adds now timing information to standalone generated quantities csv. This PR adds CmdStanR support so that the timing reporting with $generate_quantities() matches $sample().

For CmdStan 2.38 and earlier the timing reported stays the same, that is, showing 0.0 seconds.

Example output with CmdStan 2.39+

Running standalone generated quantities after 4 MCMC chains, all chains in parallel ...

Chain 3 finished in 1.3 seconds.
Chain 4 finished in 1.4 seconds.
Chain 2 finished in 1.7 seconds.
Chain 1 finished in 1.9 seconds.

All 4 chains finished successfully.
Mean chain execution time: 1.6 seconds.
Total execution time: 2.0 seconds.

Copyright and Licensing

Please list the copyright holder for the work you are submitting
(this will be you or your assignee, such as a university or company):
INSERT COPYRIGHT HOLDER HERE

By submitting this pull request, the copyright holder is agreeing to
license the submitted work under the following licenses:

@avehtari avehtari requested a review from jgabry March 29, 2026 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

generate quantities method always reports completion of chains in 0s

1 participant