BENCHMARKING 程序包 教程

Benchmarking Package

This package contains functions for measuring the performance of Mathematica on your computer and for producing a comparison report that includes benchmark results for other computers. The MathematicaMark9 benchmark, a collection of typical numeric and symbolic computations, is used for evaluating the performance of the computer system on which Mathematica is run.

The overall MathematicaMark9 result is computed as the geometric mean of the reciprocal of individual timings, normalized with respect to a reference system. The timings for the individual computations are measured with AbsoluteTiming[], which returns wall-clock time. Users are encouraged to minimize CPU usage by other processes during execution. Running the MathematicaMark9 benchmark takes about 30 seconds on the reference system and requires 512 MB of free memory.

This loads the package.
In[1]:=
Click for copyable input

BenchmarkReport[] runs the MathematicaMark9 benchmark and produces a notebook report that compares the performance of your computer with results from several known systems. If no front end is available, a plain text version of the report is returned.

BenchmarkReport[]run the MathematicaMark9 benchmark and produce a comparison report

Generating a benchmark report.

Benchmark[] runs the MathematicaMark9 benchmark and returns the results as raw data. This package includes a collection of benchmark results for a variety of systems as given in $BenchmarkSystems.

Benchmark[]raw benchmark data
$BenchmarkSystemssystems for which MathematicaMark9 benchmark data is known

Benchmark utilities.

This gives raw benchmark data in InputForm. (The data shown here was produced on the reference system.)
In[2]:=
Click for copyable input
Out[2]//InputForm=

You can create a customized comparison report using BenchmarkReport[] by specifying computer systems from $BenchmarkSystems and raw benchmark data as returned by Benchmark[].

BenchmarkReport["system1","system2",...,data1,data2,...]
produce a custom comparison report with the specified systems and raw data

Produce a customized notebook report.

This gives a report for two known systems and your computer.
In[3]:=
Click for copyable input
Out[3]=
New to Mathematica? Find your learning path »
Have a question? Ask support »