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

Documentation updates to include the Cython versus Python speed-up #66

Merged
merged 2 commits into from
Dec 16, 2024

Conversation

nr1118
Copy link
Collaborator

@nr1118 nr1118 commented Dec 13, 2024

I did this comparing Cython and Python using the %timeit magic function when sampling 100 EoSs and computing their corresponding log-likelihoods 10 times over. Here I found that for the TOVdm vs TOVdm_python the speed-up is about 15x and for TOVr vs TOVr_python the speed-up is about 20x. This difference is because the TOVdm/TOVdm_python solvers have to compute the adm_fraction is slows both codes down.

Included approximate computational speed-ups from using Cython over Python. This was done by using %timeit -r 10 magic function to  compute approximate run times.
@nr1118 nr1118 merged commit 3cd191f into main Dec 16, 2024
5 checks passed
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.

2 participants