Replies: 1 comment
-
See https://discord.com/channels/1087530497313357884/1179347946978951179 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I published in 2021 a letter in Nature Astro about "Reducing the ecological impact of computing through education and Python compilers" (https://www.nature.com/articles/s41550-021-01342-y, article available here).
This study is based on a simple benchmark on the Nbody problem (code here). I tried Mojo on this problem with 2 very simple implementations. I think nbabel/mojo/bench_no_part.mojo is buggy but I didn't spend too much time on this. The performance is good but not so good especially compared to https://github.com/paugier/nbabel/blob/main/julia/nbabel5_serial.jl (in Julia) which is significantly faster (something like 30%).
I don't know how to profile Mojo code but for other implementations in other languages, most of the time is spent in the
accelerate
function which is currently implemented innbabel/mojo/bench.mojo
asI was wondering if this code is reasonable (first time I touch Mojo) and if I could have some advice to improve it (and potentially get better performance) ?
Beta Was this translation helpful? Give feedback.
All reactions