Group Abstract Group Abstract

Message Boards Message Boards

0
|
8.4K Views
|
7 Replies
|
5 Total Likes
View groups...
Share
Share this post:

Calculation speed with Mathematica 10

Posted 10 years ago

Hello,

A colleague has a problem : When he runs a code with Mathematica 9 on i7-2600 cpu (4 cores / 8HT) it takes 1 min. When he runs the same code with Mathematica 10 on i7-4810 cpu (4 cores / 8HT) it takes 30 min ! Is it normal to have a such computing time difference for the same calculation as the cpu is quite similar ? If no, how to fix it ?

Thanks for your help Best regards

POSTED BY: Ronic Chiche
7 Replies
Posted 10 years ago

Thank you Shenghui Yang for your help. but my point is not to find a workaround but to show what is for me a bug... or a sort of...

I made a new comparison between Mathematica 9 and 10 (see code in attached file) :

I reduced the plot range to be sure that the plot results are comparable (same quality result).

I fixed also the number of points to 500 and the ploting method to "speed".

I still have a big difference in term of computation time :

Mathematica 10 : 155s

Mathematica 9 : 6s !!!

Attachments:
POSTED BY: Ronic Chiche
Posted 10 years ago

Thank you Shenghui Yang for your help.

I'm not expert in mathematica but if your solutions improve a lot the speed, they do not produce the same result, unfortunately. if you make a zoom around 0 you will see the that the plots with your methods gives much less details than the original plot...

I changed also mathematica 10.0 to 10.3 and the computation time went from 81s to 67s without changing a line of code.... then, it's already better... but v9.0 is still better....

POSTED BY: Ronic Chiche

With the second workaround, you can combine two graphics with low resolution and high resolution together.

enter image description here enter image description here

Attachments:
POSTED BY: Shenghui Yang
Attachments:
POSTED BY: Shenghui Yang
Posted 10 years ago
Attachments:
POSTED BY: Ronic Chiche

I do not know if this is a known issue. Posted in-house to appropriate graphics folk.

Follow-up: Bug report filed.

POSTED BY: Daniel Lichtblau

It should go without saying that this type of issue is impossible to diagnose without an actual example. (I said it anyway.)

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