Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Measure the evaluation timings of a function on a given set of inputs
ResourceFunction["EvaluateBenchmark"][f,g,{n1,n2,…}] gives {{n1,t1},{n2,t2},…}, where ti is the time taken to evaluate f on the input g[ni], as measured by RepeatedTiming.  | |
ResourceFunction["EvaluateBenchmark"][f,g] chooses the ni adaptively by observing the execution of f.  | 
| TimeConstraint | 10.0 | maximum time to run tests | 
Get the timings for Inverse of random matrices:
| In[1]:= | 
| Out[1]= | ![]()  | 
View a plot of the results:
| In[2]:= | 
| Out[2]= | ![]()  | 
By default, the total time is limited to 10 seconds:
| In[3]:= | 
| Out[3]= | 
Allow more time for benchmarking:
| In[4]:= | 
| Out[4]= | 
Measure all inputs regardless of how long it takes:
| In[5]:= | 
| Out[5]= | 
| In[6]:= | 
| Out[6]= | ![]()  | 
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License