When to Analyze Performance

    Note:   Use only in the MuPAD Notebook Interface. This functionality does not run in MATLAB.

Symbolic computations can be very time consuming. For many tasks, MuPAD® provides its own, optimized functions. When you use these functions, the system typically chooses algorithms that provide the best performance for your task.

However, in some cases you might want to measure and investigate your code performance. This task is also called profiling. For example, profiling is helpful when you:

  • Feel that your code runs too slowly.

  • Want to estimate the performance of a particular computation algorithm.

  • Want to compare performances of different algorithms.

  • Define and use your own data types and methods.

MuPAD provides tools to measure the running time of a particular code snippet or the whole MuPAD session. The system also provides the profiling tool to help you find and eliminate performance bottlenecks in your code.

Was this topic helpful?