MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Unbearably slow plotting (v6)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79569] Re: [mg79497] Unbearably slow plotting (v6)
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sun, 29 Jul 2007 00:18:16 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200707280925.FAA29383@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

Similar results here under Windows XP:

   $Version
5.2 for Microsoft Windows (June 20, 2005)
   SeedRandom[1]; data = Table[Random[], {10^6}];
   t=AbsoluteTime[]; ListPlot[data] // Print; Print[AbsoluteTime[]-t];
-Graphics-
[display here]
3.8593750

   $Version
6.0 for Microsoft Windows (32-bit) (June 19, 2007)
(* i.e., 6.0.1 *)
   SeedRandom[1]; data = Table[RandomReal[], {10^6}];
   t=AbsoluteTime[]; ListPlot[data] // Print; Print[AbsoluteTime[]-t];
27.5468750

However, the comparison is MISLEADING!  The total time for 5.2 was 
actually longer than what the figure shown suggests: the (essentially 
solid blob) ListPlot was still appearing after the absolute time 
difference result was printed, and it took another 10 seconds or so for 
it to complete doing so!

thomas wrote:
> Hello, group!
> 
> I am using Mathematica 5.2. for analyzing electrophysiological data.
> The data traces are essentially just long lists of numbers (length on
> the order of 10^3 to 10^6 elements per list) which I plot and then
> analyze (often several traces and their average in a single plot).
> 
> A student in our lab bought the student version of the new v6 of
> Mathematica, and I noticed that plotting the data traces with v6 is
> much slower, so I never bothered trying to switch to v6.
> 
> Now, v6.0.1 came out, claiming to have improved speed of ListPlot,
> ListLinePlot, etc, so I thought I give it another try comparing the
> speeds of the various versions. The results are quiet sad.
> 
> Here are the versions (all installed on the same machine):
> 5.2:
> In[1]:= $Version
> Out[1]= 5.2 for Microsoft Windows (June 20, 2005)
> 
> 6.0:
> In[1]:= $Version
> Out[1]= "6.0 for Microsoft Windows (32-bit) (April 27, 2007)"
> 
> 6.0.1:
> In[1]:= $Version
> Out[1]= "6.0 for Microsoft Windows (32-bit) (June 19, 2007)"
> 
> In each version, I created some fake data:
> In[2]:= SeedRandom[1];data=Table[Random[],{10^6}];
> 
> Then I "ListPlot"-ed it, while measuring the time:
> In[3]:= t = AbsoluteTime[]; ListPlot[data] // Print;
> Print[AbsoluteTime[] - t];
> (Note: using this "AbsoluteTime[]" construct rather then
> Timing[ListPlot[...]] also counts the time needed for rendering the
> plot in the FrontEnd)
> 
> The results are:
> 5.2: 1.3 sec
> 6.0.1: 34.5 sec
> 6.0: -- (I aborted after about 3 minutes or so during which v6.0 not
> only did not produce a result, but also more or less locked down the
> resources of the computer - so there seems to be an improvement in
> 6.0.1 over 6.0)
> 
> Interestingly, when I plotted shorter data that 6.0 was able to handle
> (10^4 and 10^5 data points instead of 10^6), 6.0 seemed to be slightly
> faster than 6.0.1
> 
> Anyway, my conclusion is that v6 is not usable AT ALL for my
> application, which is a bummer given the overall improvements that are
> apparently incorporated in v6.
> 
> I wondered if there might be something wrong with some secrete
> settings that make the plotting so slow? Any other comments from the
> group?
> 
> Thank you,
> Thomas
> 
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Re: Re: Re: Locator question
  • Next by Date: Re: grid lines cutting into tick labels on y-axes
  • Previous by thread: Unbearably slow plotting (v6)
  • Next by thread: Re: Unbearably slow plotting (v6)