Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2011

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

Search the Archive

Re: Timing graphics in the real world

  • To: mathgroup at
  • Subject: [mg123045] Re: Timing graphics in the real world
  • From: David Bailey <dave at>
  • Date: Mon, 21 Nov 2011 04:29:27 -0500 (EST)
  • Delivered-to:
  • References: <> <jaalb4$171$>

On 20/11/2011 10:38, DrMajorBob wrote:
> A quote from Help:
> "AbsoluteTiming[expr] measures only the time involved in actually
> evaluating expr, not time involved in formatting the result."
> Graphics rendering occurs in the FrontEnd, not the Kernel, so
> AbsoluteTiming doesn't count it.
> Bobby

Unfortunately, this isn't exactly right. AbsoluteTiming measures - as 
one might expect - absolute time! The problem is that it measures it 
before handing over the result to the FE. One answer is to measure the 
absolute time of something like this:

(Print[Plot[<something fancy>]];LinkWrite[$ParentLink, 

This forces the FE to finish rendering before it measures the absolute time.

A year ago, I gave a paper about a variety of subtle Mathematica 
timing/performance issues, which included this point:

David Bailey

  • Prev by Date: Re: Matrices as operators
  • Next by Date: Re: Timing function
  • Previous by thread: Re: Timing graphics in the real world
  • Next by thread: Re: Timing graphics in the real world