Service Virtualization

 View Only
  • 1.  Think Time Scale

    Posted Jan 02, 2017 06:47 PM

    Hi Team,

     

    I have created a stub for Non Functional Testing purpose. Number of transaction per second would be around 500 and the response time should be less than 1 second(Preferably milliseconds only). While deploying the service what should be the "Think Time Scale" value that I have to mention,so that performance time will not increase?

     

    Thanks,

    Narasimha.



  • 2.  Re: Think Time Scale
    Best Answer

    Posted Jan 02, 2017 07:54 PM

    Hi,

    I am anticipating Think Time as 0 in your VSI if Virtual Service is developed using Request/ Response or any other in-built VS development method except Recording. So, you can leave it as it is. As mentioned below, Think time scale field specifies the percentage by which to multiply all of the Think time spec fields in a service image. So, if Think Time is 0 and Think Time Percentage is 100% then overall think time would be 0ms.

     

    Since, it's for Performance test so make sure you go with minimum transaction(s) in your VSI so that it help to achieve maximum throughput. Detailed article on think time is given below.

    #Just Meta Can Be Used In Certain Conditions. Hope, it helps!

     

    Change the Think Time of a Response

    Each response for a specific transaction includes a field named Think time spec. This field specifies how long to wait before sending the response. If the service image was created from recording, the initial value is based on the response behavior that was observed during the recording.

    To simulate faster performance, decrease the value.

    To simulate slower performance, increase the value.

    By default, the value is in milliseconds. To specify the unit of time, add a suffix to the number. Case does not matter. The following suffixes are allowed:

    • t: milliseconds
    • s: seconds
    • m: minutes
    • h: hours

    You can specify a number range. The think time is randomly selected from the range. For example, the value 100-1000 specifies a random think time from 100 to 1000 milliseconds.

    If the think time is 10 milliseconds and it takes 5 milliseconds to process the request and find the response, you only incur an extra 5 milliseconds of delay.

    If the think time is 0, or is less than the time that it took to process the request, VSE sends the response as fast as it can.

    The unknown responses in a virtual service have the same field.

    When you deploy a virtual service, you can configure a related field named Think time scale. This field specifies the percentage by which to multiply all of the Think time spec fields in a service image.

    Follow these steps:

    1. Open a virtual service.
    2. Locate the response for the specific transaction or unknown response.
    3. Change the value of the Think time spec field.

    ...

    Kumar



  • 3.  Re: Think Time Scale

    Posted Jan 03, 2017 05:20 AM

    Kumar is correct - the Think Time Scale specifies the scaling applied to the Think Time Spec fields in the VSI.

     

    The Think Time Spec reflects the values seen at service creation time - in order to make your service respond as quickly as possible, set the Think Time Scale to 0.

     

    To make the service respond with a determined delay, modify the Think Time Spec fields in the VSI and set your scaling accordingly.

     

    Dave.



  • 4.  Re: Think Time Scale

    Posted Jan 03, 2017 05:35 PM

    Thanks Kumar and Dave.