FacebookGoogleTwitterResearcherIDLinkedInXing
X=10Z
Frank's Notebook

Matlab code performance testing

April 5th, 2010

Code to test the performance of matlab code and benchmark algorithms is now available here: perf. It uses the internal matlab walltime (tic/toc) and cputime functions as well as the PerformanceApplication Programming Interface (PAPI) using hardware counters for floating point operations, instructions, cycles and the PAPI real-time timer. It also counts m and builtin matlab function calls using matlab’s profiler. It’s mainly aimed at iterative algorithms.

See perf_test.m for some usage examples to collect the information and plot the results. Collecting information is done via perf_profile for the function call counters and perf_timing for the timers and PAPI counters. Use perf_profile_plot to plot and perf_timing_plot to plot the results. Iterative code needs to call perf_record_iteration(v) after each iteration to collect counters and timing information per iteration, where v is the value (vector) result for the current iteration.

The whole package still needs some detailed documentation and will be integrated with the Qyber package, mainly to test algorithms related to quantum engineering. For now this is an initial test version.

Categories: Research, Software | Tags: , , | No Comments

Highslide for Wordpress Plugin