Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6599
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Timing graphics in the real world |
| Date | 2011-11-21 09:39 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jad67l$el7$1@smc.vnet.net> (permalink) |
| References | <201111191145.GAA18886@smc.vnet.net> <jaalb4$171$1@smc.vnet.net> |
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, CellInformation[SelectedNotebook[]]])//AbsoluteTiming 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: http://www.wolfram.com/events/techconf2010/speakers.html David Bailey http://www.dbaileyconsultancy.co.uk
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: Timing graphics in the real world DrMajorBob <btreat1@austin.rr.com> - 2011-11-20 10:38 +0000 Re: Timing graphics in the real world David Bailey <dave@removedbailey.co.uk> - 2011-11-21 09:39 +0000
csiph-web