transaction duration

72 views
Skip to first unread message

Prasenjit Dutta

unread,
Dec 13, 2011, 4:47:14 AM12/13/11
to LR-LoadRunner
Hi Guys....

Do you have any idea why the trasaction response time that we are
getting with transaction duration function is less than what it is
coming in lr_end_transaction.

Ideally it should be slightly greater than the end transaction as it
contains the wasted time too.....but in my case it is alws lesser
:-(...any idea???
--
Prasenjit

gkmishr...@gmail.com

unread,
Dec 13, 2011, 5:20:12 AM12/13/11
to lr-loa...@googlegroups.com
I want to know how u came on this given conclusion????

Sent from my HTC
--
You received this message because you are subscribed to the Google "LoadRunner" group.
To post to this group, send email to LR-Loa...@googlegroups.com
To unsubscribe from this group, send email to
LR-LoadRunne...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/LR-LoadRunner?hl=en

gkmishr...@gmail.com

unread,
Dec 13, 2011, 5:05:52 AM12/13/11
to lr-loa...@googlegroups.com
See there can be many reasons for this thing  yes one of them is waste time. Other one is bad practice for scripting. Always keep text checks wrspm etc should be out side strt-end trans

piyush gupta

unread,
Dec 13, 2011, 11:23:42 AM12/13/11
to lr-loa...@googlegroups.com
transaction duration function  is called  by lr_end_transaction internally.that's why..

Prasenjit Dutta

unread,
Dec 14, 2011, 2:46:04 AM12/14/11
to lr-loa...@googlegroups.com
please check the help file it says...the value returned by transaction
duration may be greater than what end transaction is returning.....as
transaction duration returns value with the wasted time.........but in
my case transaction duration value is slightly less than what end
transaction is returning........so i am just confused which one is
actually correct.......


--
Prasenjit

piyush gupta

unread,
Dec 15, 2011, 1:31:31 AM12/15/11
to lr-loa...@googlegroups.com
where r u looking  time .......vugen replay log or in controller.....

Prasenjit Dutta

unread,
Dec 15, 2011, 12:35:35 PM12/15/11
to lr-loa...@googlegroups.com
replay log

piyush gupta

unread,
Dec 15, 2011, 12:37:14 PM12/15/11
to lr-loa...@googlegroups.com
then hard to conclude anything......

James Pulley

unread,
Dec 15, 2011, 1:30:48 PM12/15/11
to lr-loa...@googlegroups.com

Lr_end_transaction() and lr_get_transaction_duration() both include wasted time and think time.  It is natural for lr_get_transaction_duration() to be shorter in duration if called prior to lr_end_transaction() because of the small number of microseconds/milliseconds between each statement execution…which could be made longer if you have any logic between the two statements.

Prasenjit Dutta

unread,
Dec 17, 2011, 9:23:58 AM12/17/11
to lr-loa...@googlegroups.com
Thanks James, I was also thinking like this way as lr_get_transaction_duration is called before lr_end_transaction, so it should be slightly less than the what lr_end_transaction returns. But the help file tells the different story (This function returns the duration including Wasted Time. Therefore, the value may be slightly greater than the duration reported for the function when closed with lr_end_transaction.) and that is why the confusion arised for me.......

piyush gupta

unread,
Dec 17, 2011, 10:00:31 AM12/17/11
to lr-loa...@googlegroups.com
hi prasenjit,
if you will read wasted time in help file  last three lines are

" in the on-line graphs in the LoadRunner Controller and the transaction response time graphs in the LoadRunner Analysis, the transaction times are reported after subtracting the wasted time. This is the time most pertinent to understanding the system being tested. "....so it might be the case that they are comparing that time(lr_end_transaction) to this lr_get_transaction_duration time.



James Pulley

unread,
Dec 17, 2011, 10:47:51 AM12/17/11
to LoadRunner

Don't confuse how it is collected with how it is reported. Look at
the [event meter] table in your analysis database files (msaccess mdb
or sql server). The field names should be enlightening.


On Dec 17, 10:00 am, piyush gupta <love2211piy...@gmail.com> wrote:
> hi prasenjit,
> if you will read wasted time in help file  last three lines are
>
> " in the on-line graphs in the LoadRunner Controller and the transaction
> response time graphs in the LoadRunner Analysis, the transaction times are
> reported after subtracting the wasted time. This is the time most pertinent
> to understanding the system being tested. "....so it might be the case that
> they are comparing that time(lr_end_transaction) to this
> lr_get_transaction_duration time.
>

> On Sat, Dec 17, 2011 at 7:53 PM, Prasenjit Dutta <prasenjit...@gmail.com>wrote:
>
>
>
> > Thanks James, I was also thinking like this way as
> > lr_get_transaction_duration is called before lr_end_transaction, so it
> > should be slightly less than the what lr_end_transaction returns. But the
> > help file tells the different story (This function returns the duration

> > including Wasted Time <http://wasted_time.html/>. Therefore, the value


> > may be slightly greater than the duration reported for the function when

> > closed with lr_end_transaction <http://lr_end_transaction.html/>.) and


> > that is why the confusion arised for me.......
>
> > On Fri, Dec 16, 2011 at 12:00 AM, James Pulley <
> > loadrunner-li...@jamespulley.com> wrote:
>
> >>  Lr_end_transaction() and lr_get_transaction_duration() both include
> >> wasted time and think time.  It is natural for
> >> lr_get_transaction_duration() to be shorter in duration if called prior to
> >> lr_end_transaction() because of the small number of
> >> microseconds/milliseconds between each statement execution…which could be

> >> made longer if you have any logic between the two statements.****
>
> >> ** **
>
> >> *From:* lr-loa...@googlegroups.com [mailto:
> >> lr-loa...@googlegroups.com] *On Behalf Of *piyush gupta
> >> *Sent:* Thursday, December 15, 2011 12:37 PM
> >> *To:* lr-loa...@googlegroups.com
> >> *Subject:* Re: transaction duration****
>
> >> ** **
>
> >> then hard to conclude anything......****
>
> >> On Thu, Dec 15, 2011 at 11:05 PM, Prasenjit Dutta <prasenjit...@gmail.com>
> >> wrote:****
>
> >> replay log ****
>
> >> ****
>
> >> On Thu, Dec 15, 2011 at 12:01 PM, piyush gupta <love2211piy...@gmail.com>
> >> wrote:****
>
> >> where r u looking  time .......vugen replay log or in controller..... ***
> >> *
>
> >> ** **
>
> >> On Wed, Dec 14, 2011 at 1:16 PM, Prasenjit Dutta <prasenjit...@gmail.com>
> >> wrote:****


>
> >> please check the help file it says...the value returned by transaction
> >> duration may be greater than what end transaction is returning.....as
> >> transaction duration returns value with the wasted time.........but in
> >> my case transaction duration value is slightly less than what end
> >> transaction is returning........so i am just confused which one is

> >> actually correct.......****


>
> >> On 12/13/11, piyush gupta <love2211piy...@gmail.com> wrote:
> >> > transaction duration function  is called  by lr_end_transaction
> >> > internally.that's why..
>

> >>http://groups.google.com/group/LR-LoadRunner?hl=en****
>
> >> ** **


>
> >> --
> >> You received this message because you are subscribed to the Google
> >> "LoadRunner" group.
> >> To post to this group, send email to LR-Loa...@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> LR-LoadRunne...@googlegroups.com
> >> For more options, visit this group at

> >>http://groups.google.com/group/LR-LoadRunner?hl=en****
>
> >> --
> >> Prasenjit****


>
> >> --
> >> You received this message because you are subscribed to the Google
> >> "LoadRunner" group.
> >> To post to this group, send email to LR-Loa...@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> LR-LoadRunne...@googlegroups.com
> >> For more options, visit this group at

> >>http://groups.google.com/group/LR-LoadRunner?hl=en****
>
> >> ** **


>
> >> --
> >> You received this message because you are subscribed to the Google
> >> "LoadRunner" group.
> >> To post to this group, send email to LR-Loa...@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> LR-LoadRunne...@googlegroups.com
> >> For more options, visit this group at

> >>http://groups.google.com/group/LR-LoadRunner?hl=en****

Reply all
Reply to author
Forward
0 new messages