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

Python examples #35

Open
xmnlab opened this issue Sep 15, 2022 · 1 comment
Open

Python examples #35

xmnlab opened this issue Sep 15, 2022 · 1 comment

Comments

@xmnlab
Copy link

xmnlab commented Sep 15, 2022

very interesting initiative!

about the python benchmark, maybe it would be great to check the result using numpy and/or numba (also pypy).
because nowadays, no one would use pure python (when possible) when performance is important.

thanks!

@erik-mansson
Copy link

Completely agree.

Generally, it would be interesting to allow a fairer comparison between compiled and interpreted languages by extending the data collection script to measure also during the Makescript (compilation) and probably sum it with the results for the first run (to hopefully give a relevant comparison even in the case of languages with virtual machine or interpreter). The energy consumption, time and memory for this should be shown in separate columns of the result tables.

At the level of interpretation and discussion of the results, one could then consider different trade-offs for different use-cases. I.e. for a program that will handle huge datasets but seldom need to be updated, compilation consumption isn't important. But for interactive use on small datasets where the program is tweaked until it works or until the diagrams are annotated as desired, the tradeoff could be completely different. And the second situation is the kind of use where many students and scientists may use Python (typically with numpy for the actual array operations).

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

No branches or pull requests

2 participants