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.

(RefLink[TimeConstrained, paclet:ref/TimeConstrained]) — run a command for at most a specified time

(RefLink[Timing, paclet:ref/Timing]) — CPU time to run a command within the Wolfram Language kernel

(RefLink[RepeatedTiming, paclet:ref/RepeatedTiming]) — average timing based on repeated evaluation

(RefLink[AbsoluteTiming, paclet:ref/AbsoluteTiming]) — total wall-clock time to run a command

Network Timing

(RefLink[PingTime, paclet:ref/PingTime]) — find the time to reach a network host

(RefLink[URLResponseTime, paclet:ref/URLResponseTime]) — find the time to start reading a URL

Time Optimizations

(RefLink[N, paclet:ref/N]) — use approximate rather than exact numbers

(RefLink[Compile, paclet:ref/Compile]) — compile a numeric function into byte or machine code

(RefLink[Dispatch, paclet:ref/Dispatch]) — preprocess large lists of rules

(RefLink[Hash, paclet:ref/Hash]) — find a numeric hash code for any expression

(RefLink[DumpSave, paclet:ref/DumpSave]) — save data in .mx native Wolfram Language format

Low-Level Functions