Help Center > > FAQs> What Are the Differences Between Think Time and Concurrent Time in CPTS?

What Are the Differences Between Think Time and Concurrent Time in CPTS?

Updated at: Nov 11, 2019 GMT+08:00

There are two time-related concepts in CPTS:

  • Think time (ms): wait period between two consecutive operations performed by a user
  • Concurrent time (s): time spent executing a test task

The think time does not affect the total duration of concurrency. It only affects the number of concurrent requests. The following example explains this in detail.

The think time is set to 1000 ms, the duration is set to 600s, and the number of concurrent users is set to 10. The formula for calculating the number of concurrent requests is as follows: Duration x Number of concurrent users/Think time. The result is 6000 (600s x 10/1s). The total duration of the concurrency for this task is 600s, and 6000 query requests are sent to the server.

In some cases, the test result shows that the number of concurrent requests is smaller than 6000, which is not wrong. The reason is that if a message is not immediately responded, the system waits 0.1s for response.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel