Pi computation speed #2523
-
|
Hi! I read in (1) that FLINT 3 can compute 100 million digits of Pi in 31.6s (8-core AMD Ryzen 7 PRO 5850U CPU (Zen 3)). In the same comparison was y-cruncher which was done in 18.3s. However I was not able to reproduce such timings so I was hoping if someone could maybe explain what I'm doing wrong. In summary the blog says the difference between FLINT and y-cruncher is ~1.7x but I see ~30x difference. Thanks for any comments! (1) https://fredrikj.net/blog/2023/04/flint-furnished-with-faster-fft/ |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
|
Probably y-cruncher is still multithreaded? According to https://www.numberworld.org/y-cruncher/benchmarks/charts/100m.html the fastest reported y-cruncher timings for 100M are in the 0.5 - 1 second range on various multicore CPUs. These are surely results with multithreading enabled. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you very much for the reply but no, multithreading was disabled (and didn't make a lot of difference at this size if it was enabled). The page https://www.numberworld.org/y-cruncher/#Benchmarks also show that the slowest CPU Core i3 8121U computed 100M in ~9s and I would assume the above AMD Ryzen was faster. |
Beta Was this translation helpful? Give feedback.
-
|
Do you happen to remember which version of y-cruncher was used there? |
Beta Was this translation helpful? Give feedback.
-
|
Here's the output benchmarking 100M digits on my machine with the latest version of y-cruncher. It takes 18.8 seconds single-threaded (first run) and 4.1 seconds multi-threaded (second run). What kind of output do you get with the same commands? |
Beta Was this translation helpful? Give feedback.
-
|
Now that's embarrassing. I didn't know I could run y-cruncher in the interactive mode, there it was clear I was still running with multithreading (-noSMT does something else). With multithreading disabled I get ~7s for 100M. The order of universe is restored and I truly apologise for the false alarm. |
Beta Was this translation helpful? Give feedback.
-
|
No worries! |
Beta Was this translation helpful? Give feedback.
Here's the output benchmarking 100M digits on my machine with the latest version of y-cruncher.
It takes 18.8 seconds single-threaded (first run) and 4.1 seconds multi-threaded (second run).
What kind of output do you get with the same commands?