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

RepeatedTiming average timing based on repeated evaluation

AbsoluteTiming total wall-clock time to run a command

TimeUsed  ▪  SessionTime  ▪  AbsoluteTime  ▪  $TimeUnit

Network Timing

PingTime find the time to reach a network host

URLResponseTime find the time to start reading a URL

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

Related Tutorials