Permanent magnet synchronous motors (PMSM) can be produced at lower costs with new developments in magnet technology and are widely used in many industrial areas due to their low energy consumption. The widespread use of PMSM brings with it the requirement for high accuracy control performance. In order to achieve high performance accuracy, vector control technique is generally preferred. However, the parameter values of the controllers used in this technique are very important for motor performance. Tuning these parameters by optimization techniques instead of classical methods has become a popular topic. Nowadays, modern control methods show more effective control behavior than classical control methods, which has made the use of modern control methods widespread and studies on modern control methods have intensified. In this study, the analysis of different optimization algorithms used in the control of an PMSM according to their performance indices is investigated in Matlab-Simulink environment. As a result of simulation with different optimization algorithms under the same conditions, the analysis of optimization algorithms using different performance indices such as integral of the absolute value of the error (IAE), integral of the square of the error (ISE), Integral of the Square of the Error Multiplied by Time (ITSE), and Integral of the Absolute Error Multiplied by Time (ITAE) is carried out.