Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: running a program

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87259] Re: running a program
  • From: David Bailey <dave at Remove_Thisdbailey.co.uk>
  • Date: Sun, 6 Apr 2008 06:40:24 -0400 (EDT)
  • References: <ft2asb$pfl$1@smc.vnet.net>

pnikkos wrote:
> Hi all,
> 
> i want to ask you something very dummy.
> 
> I want to run a benchmark in mathematica, and i have a nb file.
> 
> How can i run my program(that is in the nb file) and get the results?
> 
> I am using mathematica only one day, so if you can explain me what to do exactly?
> 
> 
> 
> Thanks anyway,
> nick
> 
Most people run benchmarks to evaluate software, and I honestly think 
you need to take at least a few weeks to learn Mathematica before you 
can do that meaningfully. There are a host of issues that can affect the 
performance of a Mathematica program:

Program style, such as use of functional programming

Possible need to use the Compile function

Avoiding mixed data in arrays so that they pack

Ensuring algorithms operate on the right kind of data (for example, 
inverting a matrix of integers will run much slower than inverting the 
corresponding real array)

............... Etc etc

Of course, if the benchmark was written by someone else, and is 
initiated by one function call - say bench[] then execute

bench[]//Timing

Even in that case, you want to ensure that you avoid printing a 
ridiculously large amount of data to your notebook. Preferably, the 
benchmark will produce very little output.

David Bailey
http://www.dbaileyconsultancy.co.uk




  • Prev by Date: Re: Re: How to put text on a curved surface?
  • Next by Date: Re: Help with Check Function Arguments & Options
  • Previous by thread: Re: running a program
  • Next by thread: reaction diffusion equation !