Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

Time Measurement & Optimization

The Wolfram Language's symbolic timing framework allows timing information not only to be analyzed but also to be used in the structure of algorithms. The Wolfram Language provides functions to allow programmers to take advantage of the same kinds of powerful optimizations as the Wolfram Language's carefully tuned internal code.


TimeConstrained run a command for at most a specified time

Timing CPU time to run a command within the Wolfram Language kernel

AbsoluteTiming total wall-clock time to run a command

TimeUsed  ▪  SessionTime  ▪  AbsoluteTime  ▪  $TimeUnit

Time Optimizations

N use approximate rather than exact numbers

Compile compile a numeric function into byte or machine code

Dispatch preprocess large lists of rules

Hash find a numeric hash code for any expression

DumpSave save data in .mx native Wolfram Language format

$IterationLimit  ▪  WorkingPrecision  ▪  PerformanceGoal  ▪  Method

Low-Level Functions

Refresh  ▪  ClearSystemCache  ▪  SystemOptions