Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Return the time taken and the memory used by an operation
ResourceFunction["TimeMemoryUsed"][expr] evaluates expr, returning a list of the absolute number of seconds in real time that have elapsed, the maximum number of bytes used and the result. |
Find the time taken and memory used of calculating 54:
In[1]:= |
Out[1]= |
TimeMemoryUsed combines AbsoluteTiming and MaxMemoryUsed:
In[3]:= |
Out[3]= |
Check MaxMemoryUsed:
In[4]:= |
Out[4]= |
Combine both of them:
In[5]:= |
Out[5]= |
This work is licensed under a Creative Commons Attribution 4.0 International License