Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1997
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1997

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

Search the Archive

Mma programing construct speed comparison

  • To: mathgroup at smc.vnet.net
  • Subject: [mg8461] Mma programing construct speed comparison
  • From: "Xah" <xah at best.com>
  • Date: Tue, 2 Sep 1997 16:14:55 -0400
  • Organization: smtp.best.com
  • Sender: owner-wri-mathgroup at wolfram.com

There is a notebook comparing the speed of various programing constructs.
Get it at <http://www.best.com/~xah/MathematicaPrograming_dir/mmaTiming.nb>

Here's the intro:

This notebook compares the speed of various programing constructs. Which one
is faster: N at Table[...] or Table[N at ...,iterator]? Map[f[i],Range[n]] or
Table[f[i],{i,1,n}]? Map[f,{g...}] or. {g...}/.g->f[g]? 3+3 or 3*3? 1*2. or
N[1*2]? Is Nest[N,1,100000] much slower than N[1]? In general, these are
things serious Mathematica programers would be interested.
This notebook is an open project, and is in public domain. You can get this
notebook at
(http://www.best.com/~xah/MathematicaPrograming_dir/mmaTiming.nb) or send an
email to (xah at best) to request it. Feel free to edit this notebook in any
way and send the result notebook to Xah Lee (xah at best.com) and I will post
the updated notebook. Again, edit and add to this notebook in any way that
you think better serves its goal. You may want to put your name and email
address in parts you edited or written so people can contact you.
Significant improvement of this notebook will be announced on MathGroup
monthly or every two months. Let's hope this notebook become a rolling
snowball and will become a significant Mathematica literature in the future.
Xah Lee. (xah at best.com) 1997/08.

 Xah
 xah at best.com
 http://www.best.com/~xah/SpecialPlaneCurves_dir/specialPlaneCurves.html
 Mountain View, CA, USA


  • Prev by Date: Plot help needed
  • Next by Date: problem printing on a mac
  • Previous by thread: Re: Plot help needed
  • Next by thread: problem printing on a mac