You can use the dlCodegenBench function to benchmark the runtime performance of deep learning models running as C/C++/CUDA code generated from MATLAB Coder and GPU Coder.
dlCodegenBench automates the execution running with different code generation configurations so you can compare performance on different hardware (CPU/GPU), different deep learning optimization libraries (target-independent code, MKL-DNN, cuDNN, TensorRT, etc).
More details here: