Highlighted
Established Member..
Established Member..
8522 views

What is the difference b/w Iteration and Pacing

Jump to solution

HI  Guys,

 

 

I am so confused about  the terminology of Iteration  and  Pacing Could some one please differentiate

 

What is the difference b/w Iteration and Pacing?

 

Thanks,

Raj

0 Likes
1 Solution

Accepted Solutions
Highlighted
Absent Member.
Absent Member.

Re: What is the difference b/w Iteration and Pacing

Jump to solution

 

You can provide the time for pacing under the Run time settins next to the Run Logic. You will see the below options for Pacing over there

 

1)     Pacing: It is the user waiting time between the iterations executions. (Time gap between the iterations)

a)     As soon as the previous iteration ends : There will not be any waiting time between the iteration executions. As soon as the previous iteration ends the next iteration starts with no time gap.

b)    After the previous iteration ends :

i)              Fixed Delay : The user will wait fixed amount of waiting time between the iterations executions

ii)            Random Delay: The user will consider a random amount of waiting time between the iterations executions with a given range.

Fixed à Delay of 10 sec (Waits for 10 sec after each iteration ends with a fixed delay of 10 sec)

Random à Delay of 10 sec to 20 sec (Waits for a random period after each iteration ends its execution within the given range of 10 to 20 seconds)

iii)           Interval Time: The interval time includes iteration execution time and pace time.

Pace time = Interval time – iteration execution time.

Fixed Interval time: It considers the fixed interval time and starts the next iteration by subtracting the time taken for the iteration execution from the fixed time set.

Random Interval Time: It considers the random interval time within the given range by subtracting the time taken for the iteration execution from the random interval time considered by the tool.

 

I suggest you to go for a Random delay between 15 to 30 which is recommended.

View solution in original post

0 Likes
8 Replies
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: What is the difference b/w Iteration and Pacing

Jump to solution

Hi Raj,

 

The two are rather related.

When running load tests if you have iterations specified in your scripts, the pacing defines the time to be set before starting the next user.

Eg : If you are running1 user with 3 iterations and if you pacing time is 3 secs

then iteration 2 will wait for 3 secs after iteration 1 has been completed.

 

Hope this helps.

 

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: What is the difference b/w Iteration and Pacing

Jump to solution

Iteration is nothing but to define the script to iterate for no. of times according to the requirement. It is nothing but repeating the task for multiple times and you need to set to initiate a new user on each iteration in your run time settings which is by default. Pacing is nothing but the time gap between the iterations. For eg. if you are running your script for multiple iterations, you need to specify the time gap to maintain idleness before starting the next iteration to run.

 

Best practice is go for 15 to 30 seconds randomly setting.

0 Likes
Highlighted
Established Member..
Established Member..

Re: What is the difference b/w Iteration and Pacing

Jump to solution

Hi Srinivas,

 

Could  you please little bit elaborate about Pacing with an example. Where can user enter the time for Pacing?

 

 

Thanks for sharing the info!

 

Thanks,

Raj

0 Likes
Highlighted
Absent Member.
Absent Member.

Re: What is the difference b/w Iteration and Pacing

Jump to solution

 

You can provide the time for pacing under the Run time settins next to the Run Logic. You will see the below options for Pacing over there

 

1)     Pacing: It is the user waiting time between the iterations executions. (Time gap between the iterations)

a)     As soon as the previous iteration ends : There will not be any waiting time between the iteration executions. As soon as the previous iteration ends the next iteration starts with no time gap.

b)    After the previous iteration ends :

i)              Fixed Delay : The user will wait fixed amount of waiting time between the iterations executions

ii)            Random Delay: The user will consider a random amount of waiting time between the iterations executions with a given range.

Fixed à Delay of 10 sec (Waits for 10 sec after each iteration ends with a fixed delay of 10 sec)

Random à Delay of 10 sec to 20 sec (Waits for a random period after each iteration ends its execution within the given range of 10 to 20 seconds)

iii)           Interval Time: The interval time includes iteration execution time and pace time.

Pace time = Interval time – iteration execution time.

Fixed Interval time: It considers the fixed interval time and starts the next iteration by subtracting the time taken for the iteration execution from the fixed time set.

Random Interval Time: It considers the random interval time within the given range by subtracting the time taken for the iteration execution from the random interval time considered by the tool.

 

I suggest you to go for a Random delay between 15 to 30 which is recommended.

View solution in original post

0 Likes
Highlighted
Established Member..
Established Member..

Re: What is the difference b/w Iteration and Pacing

Jump to solution
0 Likes
Highlighted
Established Member..
Established Member..

Re: What is the difference b/w Iteration and Pacing

Jump to solution

Hi Srinivas / SPP_PC,

 

You guys said Pacing is time gap b/w the iterations.

 

Could you please advice on the below query.

 

Does  Loadrunner ignores the pacing time? If not  what is the default LR pacing time?

 

Thanks,

 Raj

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: What is the difference b/w Iteration and Pacing

Jump to solution
The default is no time between iterations, meaning as soon as the vuser reaches the end of the script, it starts from the beginning again. This is literal, by the way. The user will restart as fast as electrons will allow, which is why it is recommended for "live" tests to put some value in for the pacing.
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: What is the difference b/w Iteration and Pacing

Jump to solution
Hi,

read more about iteration and pacing, think times and transactions-per-second in this article:
http://www.perftesting.co.uk/calculating-the-number-of-virtual-users-to-achieve-the-target-load-using-hp-loadrunner/2011/09/20/

cheers
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.