comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » plot function performance
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: plot function performance [message #91751 is a reply to message #91747] Thu, 20 August 2015 10:54 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Wednesday, August 19, 2015 at 6:01:14 PM UTC-6, wood...@colorado.edu wrote:
> Has anyone else noticed a discrepancy in the time it takes to call a plot function in the various different OS's? I'm noticing that a fire-breathing linux server is slower than my old mac desktop.
>
> For background, I have an old linux server that I need to replace. I have access to a really fast linux server, too and tried to figure out how much faster it would be. Unfortunately, when using function graphics they seem to be extremely similar in performance. This makes me think IDL has a problem with linux in general.
>
> Here is an example that shows a substantial difference in creating one plot. The first time takes longer than successive calls. Why?
>
> IDL Version 8.2.2, Mac OS X (darwin x86_64 m64). (c) 2012, Exelis Visual Information Solutions, Inc.
> Installation number:
> Licensed for use by:
>
> IDL> x=systime(1) & p=plot(findgen(10)) & print,systime(1)-x
> % Loaded DLM: PNG.
> 1.9941020
> IDL> x=systime(1) & p=plot(findgen(10)) & print,systime(1)-x
> 0.19571400
> IDL> x=systime(1) & p=plot(findgen(10)) & print,systime(1)-x
> 0.20434308
>
> Here is the same thing done on a significantly faster linux server.
>
> IDL Version 8.4 (linux x86_64 m64). (c) 2014, Exelis Visual Information Solutions, Inc.
> Installation number:
> Licensed for use by:
>
> IDL> x=systime(1) & p=plot(findgen(10)) & print,systime(1)-x
> % Loaded DLM: XML.
> % Loaded DLM: PNG.
> 6.0436580
> IDL> x=systime(1) & p=plot(findgen(10)) & print,systime(1)-x
> 2.2157071
> IDL> x=systime(1) & p=plot(findgen(10)) & print,systime(1)-x
> 2.3254170
>
> Here is the same thing on my old, infirmed, linux server:
>
> IDL Version 8.2 (linux x86_64 m64). (c) 2012, Exelis Visual Information Solutions, Inc.
> Installation number:
> Licensed for use by:
>
> IDL> x=systime(1) & p=plot(findgen(10)) & print,systime(1)-x
> % Loaded DLM: XML.
> 6.2218139
> IDL> x=systime(1) & p=plot(findgen(10)) & print,systime(1)-x
> 2.1858058
> IDL> x=systime(1) & p=plot(findgen(10)) & print,systime(1)-x
> 1.9238040
>
>
> The first plot took about 6 seconds to create under linux (both new and old servers) but only 2 seconds for my old mac. Notice that the linux IDL 8.4 is compiling a DLM that mac OS is not (notice that linux with IDL 8.2 is also different).
>
> After that first call the successive plots show a factor of 10 difference with Mac winning. What gives? Why is IDL new graphics on linux so slow? I've done the same test on Windows and it's comparable to the Mac. Also it does not seem to matter if it's the workbench or the command line, I get the same behavior.
>
> If I want to create lots of graphics in linux what should I buy? A faster processor doesn't seem to make any difference, and new and old linux machines are the same speed.
>
> Thanks in advance,
> Don

Hi Don,

For the initial calls, the bottleneck is compiling the pro code. So it really depends upon where your files are stored, how fast your network is (if they are on a network drive), or how fast your hard drive is (if they are local files).

For subsequent calls, part of the time is taken in creating the IDL objects, and the rest will be for OpenGL calls (or Mesa for software rendering). So you might need to look at your graphics card in all of the machines.

Try setting renderer=1 when making those calls, to force software rendering. That should eliminate the difference between graphics cards.

Hope this helps.

-Chris
[Message index]
 
Read Message
Read Message
Previous Topic: python, strange result
Next Topic: generate kinematic data using IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 09:08:50 PDT 2025

Total time taken to generate the page: 1.11901 seconds