Group Abstract Group Abstract

Message Boards Message Boards

Performance degradation from 11.3,12.1.1,12.2.0 => 12.3.1 on Raspberry Pi

Posted 4 years ago

I know that calculating the digits of Pi is something very specific and probably irrelevant to the real practical problems, but somehow it feels appropriate to quickly test the performance of Wolfram Mathematica, especially if the machine is actually called Raspberry Pi :)

So, here is the log of running AbsoluteTiming[N[Pi,10^6];] on a Raspberry Pi with different versions of Wolfram Mathematica, from which it is clear that 11.3, 12.1.1 and 12.2.0 give approximately the same timings, but 12.3.1 is substantially worse.

$ math11
Wolfram Language 11.3.0 Engine for Linux ARM (32-bit)
Copyright 1988-2018 Wolfram Research, Inc.

In[1]:= AbsoluteTiming[N[Pi,10^6];]
Out[1]= {2.03026, Null}

--------------------------------------------------------

$ math12.1
Mathematica 12.1.1 Kernel for Linux ARM (32-bit)
Copyright 1988-2020 Wolfram Research, Inc.

In[1]:= AbsoluteTiming[N[Pi,10^6];]           
Out[1]= {2.08772, Null}

--------------------------------------------------------
$ math12.2
Mathematica 12.2.0 Kernel for Linux ARM (32-bit)
Copyright 1988-2021 Wolfram Research, Inc.

In[1]:= AbsoluteTiming[N[Pi,10^6];]
Out[1]= {3.25156, Null}

--------------------------------------------------------
$ math
Mathematica 12.3.1 Kernel for Linux ARM (32-bit)
Copyright 1988-2021 Wolfram Research, Inc.

In[1]:= AbsoluteTiming[N[Pi,10^6];]
Out[1]= {7.66692, Null}
POSTED BY: Tigran Aivazian
6 Replies

Oh yes, on 12.3.1 it made a HUGE improvement! The time went down from 7.67 to just 3.21 seconds, which is practically the same as 12.2, though still not as good as 11.3. Thank you very much for the workaround. Actually, I should have guessed it myself, as I use sympy which makes use of gmpy which relies on libgmp, as I always test a python installation with from sympy import * followed by %time a=pi.evalf(10**6) -- and, btw, it is always slower than Mathematica! And this is true also for Maple, Maxima and Reduce -- none of them even come close to Mathematica.

POSTED BY: Tigran Aivazian
POSTED BY: Tigran Aivazian

Thank you for reporting this issue, it should be corrected in our next release.

In the meantime, the following may be used as a workaround

$ sudo apt install libgmp10

$ sudo mv /opt/Wolfram/WolframEngine/12.3/SystemFiles/Libraries/Linux-ARM/libgmp.so.10 \
  /opt/Wolfram/WolframEngine/12.3/SystemFiles/Libraries/Linux-ARM/libgmp.so.10.bak
POSTED BY: Ilian Gachevski

We'll take a look. Thanks for reporting this.

POSTED BY: Arnoud Buzing

I noted that 11.3 is the fastest when computing the digits of the MRB constant too. I could add some benchmarks, if anyone wants them. (It would take about a day.)

POSTED BY: Tigran Aivazian
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard