JMeter website Address: https://jmeter.apache.org/
As a developer, the necessary performance tests still need to be mastered, although the configuration of Druid can be more intuitive to achieve SQL execution time, those tables are accessed more and so on, but can not test SQL 1000 or 10,000 times what happens? This is where the performance test tool comes in handy, which simulates the user's access to the scene
JMeter is a good performance testing tool.
Testing MySQL performance can be as follows:
1. Add a jar file that connects to MySQL
No this file can go to the official website to download, after the successful download, put the file under the Jre/lib/ext file, otherwise it will not be tested
2. Set up thread groups, specify number of threads and number of thread cycles
3. Click Add to the thread group, the Configure Symbol option appears, then click on the configuration component's JDBC connectioin config appears as shown
One of the main things to fill out is the variable name, and the other is the four elements of a connected database that Java developers are familiar with.
4. Fill in the variable name in the corresponding 3 and fill in the corresponding SQL statement to test
5. In order to better see the test results, click the Add button for the thread group, there is a listener in many of the items displayed, click the Listener, you can choose how to visually view the test results
MySQL Performance test of JMeter