Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating Julia function for log density evaluation #278

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sunxd3
Copy link
Member

@sunxd3 sunxd3 commented Feb 27, 2025

description to come...

sunxd3 and others added 3 commits February 27, 2025 09:22
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

Benchmark results on macOS (aarch64)

BridgeStan not found at location specified by $BRIDGESTAN environment variable, downloading version 2.6.1 to /Users/runner/.bridgestan/bridgestan-2.6.1
Done!

Stan results:

Model Parameters Density Time (µs) Density+Gradient Time (µs)
rats 65 4.90967 7.052
pumps 12 0.814286 0.958355
bones 13 74.291 84.541
oxford 244 10.75 13.979
epil 303 33.208 40.584
lsat 1006 100.75 133.625
schools 133 224.542 372.98
beetles 2 0.693452 0.860294
air 5 0.793919 0.982548

JuliaBUGS results:

Model Parameters Density Time (µs) Density+Gradient Time (µs)
rats 65 84.417 310.416
pumps 12 13.646 22.625
bones 33 520.459 537.958
oxford 244 375.083 612.979
epil 303 306.792 754.146
lsat 1006 2545.62 4235.83
schools 133 1896.67 6977.83
beetles 2 9.19433 13.771
air 5 7.3125 9.625

Benchmark results on Ubuntu (x64)

BridgeStan not found at location specified by $BRIDGESTAN environment variable, downloading version 2.6.1 to /home/runner/.bridgestan/bridgestan-2.6.1
Done!

Stan results:

Model Parameters Density Time (µs) Density+Gradient Time (µs)
rats 65 5.2038 7.54917
pumps 12 0.952774 1.12327
bones 13 71.684 88.306
oxford 244 13.761 16.601
epil 303 29.234 35.556
lsat 1006 152.126 190.077
schools 133 490.419 723.852
beetles 2 0.830971 1.02871
air 5 0.613229 0.779342

JuliaBUGS results:

Model Parameters Density Time (µs) Density+Gradient Time (µs)
rats 65 71.724 86.883
pumps 12 12.824 6.60475
bones 33 391.383 192.697
oxford 244 349.62 182.452
epil 303 267.917 241.566
lsat 1006 1965.32 1317.98
schools 133 1758.99 3021.6
beetles 2 7.45383 3.913
air 5 6.56225 2.34767

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.

1 participant