JMeter test database mysql and hypersql concurrent performance

1. Add a thread group (the starting point of any test plan)
  Open JMeter, right-click TestPlan, select Add->Thread->Thread Group


Number of threads: how many threads are created for concurrent access

Ramp-Up Period(in seconds) : how long to create all threads, if the Ramp-Up Period is set to x seconds and the number of threads is k, then every x/k seconds
                     Create a thread and start it. The default is 0, JMeter creates all threads at once .

Number of loops : how many tests a thread performs

2. Configure the database connection

  Right-click the thread group, add->Config Element->JDBC Connection Configuration


3. Add JDBC Request (JMeter sends a request to the server)

Right-click the thread group, add->sampler->JDBC Request
Note : If you need to execute several JDBC requests, create several JDBC Request elements, and JMeter sends requests in the order of addition
          The total number of JDBC requests: the number of threads * the number of JDBC requests * the number of loops


4. Add graphical results, view result trees, aggregate reports (visualize results)

Right-click the thread group, add->Listerer->Graph Results, View Results Tree, Aggregate Report

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325640125&siteId=291194637