You are on page 1of 5

LOAD RUNNER

THIS BLOG WILL PROVIDE YOU ALL THE INFORMATION ABOUT THE LOAD RUNNER AND PERFORMANCE TESTING - -- Raviteja G

Home Page

List of topics in this blog

Contact me Total Pageviews Search This Blog


Search

PACING Calculation
Pac ing Calc ulation : D = Duration of the test(test window/time frame) B = Baseline time(total time taken by 1 Vu to complete 1 whole iteration) T = T otal amount of T hink time in the script I = Expected/T arg et iteration R = Residual time of the test window. R = ( D - (T + B)*I) P = Pacing interval Dividing the residual time by targ et iteration g ives pacing interval Hence: P = R/I D is pacing time. (T + B)*I represents the duration of a scenario and P is the waiting time before the next scenario Calculating Pacing T ime/T hink T ime to achieve 50 T PS with an averag e response time of 0.5 seconds with total of 100 Users Let us start with calculating total number of transactions in an hour. 1 sec = 50 trnx 3600 sec = x x = 3600 * 50 = 180000 trnx/hour by 100 Users We have total number of users g iven as 100. Let us see how to calculate how many transactions each user will perform. T otal Number of Users = 100 Each User will perform 180000/100=1800 transactions/hour Since, every transaction is taking on an averag e 0.5 seconds, let us see how much time is required to complete the each user transactions. T o complete 1800 trnx it will take 1800*0.5 = 15 minutes

CONTENTS OF THIS BLOG


2013 (431) June 2013 (146) Load Runner Introduction and Archietecture How load runner works? Types of VUsers Why LoadRunner? what are the uses of Load Runner What is performance testing? Why do performance testing? Types of performance testing? Common Performance Problems in testing Performance Testing Process Performance Counters for Load Runner Proof of Concept- POC LoadRunner 11.0 ProtocolS List Correlation and web_reg_save_param() Web_Set_Max_Html_param_Len () Load runner Controller material RelFrameID Attribute in web_reg_save_param() Functions in load Runner HTTP Response Messages(HTTP CODES) C PROGRAMS and functions in LOAD RUNNER Load Runner Interview Questions DATABASE(SQL) MONITORING IN LOAD RUNNER Siebel Protocol recording and correlation in load ... STEP DOWNLOAD TIMEOUT ERROR IN LOAD RUNNER How to design a Scenario for Load testing using HP... How to do correlation when boundaries are changing... LoadRunner::Applies Extensible StylesheetLanguage ... LoadRunner::Replaces fragments ofan XML string Difference between Web(Click & Script) and Web(HTT... Web Click and Script Tips and Tricks Monitoring system performance for an SAP applicati... HP SiteScope Monitoring

So now, let us see how much think-time is required to complete the required number transactions per User in an hour. 1800 transactions will complete in 15 minutes hence, 4 5 minutes of thinktime is required in between 1800 transactions (i.e. 4 5*60 = 2700 seconds of thinktime required in between 1800 transactions (per user)) 2700 seconds = 1800 trnx x = 1 trnx x = 1.5 seconds think time need to include Let us see how much time is required to complete each iteration. Total time required to complete each Iteration = x + 0.5 seconds = 1.5 + 0.5 = 2 seconds Verification: Let us verify if our above calculation is correct. Total time = 1800 * 2 = 3600 seconds = 1 Hr So, Each User will perform 1800 transactions where we will provide 2 seconds for each Iteration to complete. Rando m Virtual User Pacing in Lo adRunner: I guess there's always a first time. I had never used LoadRunner's random virtual user (VU) pacing earlier, but am working on a project that will need to use this feature for the first time. And as I thought about it a little more, I may start using it more frequently now. Here's how it happened

LoadRunner Password Encoder and lr_decrypt() MEMORY LEAK IN PERFORMANCE TESTING load runner What is Page Faults? What is Paging? New features in LoadRunner 9.5 LoadRunner Certification MANUAL TESTING CONCEPTS winrunner interview questions Unix material Basic unix commands Transaction Names as Numbers in

This is one of the rare projects that provided me with excellent documentation - not only system documentation like the system specs, API Guides etc but also performance requirements like actual production volume reports and capacity models that estimated the projected volumes. The capacity models estimated the maximum transaction load by hour as well as by minute (max TPM). What I needed to do was take maximum hourly load, divide it by 60 to get a per minute transactional load and use this as the average TPM. The idea was to vary the VU pacing so that over the whole duration of test, average load stays at this Average TPM but it also reaches the Max TPM randomly. For example, if the maximum hourly transaction rate is 720 requests and maximum TPM is 20, the average TPM will be 720/60 = 12 and I will need to vary the pacing so that the load varies between 4 TPM and 20TPM and averages to around 12TPM.
The Calculation:

Transaction Names as Numbers in Loadrunner Analysi... The Differences Between Thick & Thin Client Hardwa... SQL Server Counters for Monitoring SQL Server Perf... Manual results collation in Loadrunner JVM MONITORING VM STAT COMMANDS IN UNIX Top 10 performance issues with a Database Mitigation of Performance Testing Impediments SAR COMMANDS UNIX Flex Protocol Scripting in LR 90TH PERCENTILE Latency Vs Bandwidth

To vary the transactional load, I knew I had to vary the VU Pacing randomly. Taking above example, I had to achieve 12TPM and I knew the transactions were taking around 1-2 seconds to complete. So I could have the pacing of around 120 seconds if I needed to generate a fixed load of 12TPM with a 5 second Ramp-up and 24 users.

HOW GARBAGE COLLECTION WORKS IN JAVA interview questions load runner PACING Calculation VUSER CALCULATIONS ? Performance tuning

Script Script 1

TPM 12

Number o f VUs 24

Pacing (sec) 120

Ramp Up 1 VU/5sec

Difference In Monitoring System Resources From Per... Monitoring System Resources On Remote Machines Usi... Calculating Processor(_Total)\%Processor Time For ... Embedding Pacing In LoadRunner Script (Includes Pa... what is pacing? What is injector in LoadRunner? How many types of graphs does LoadRunner have? Analysis Scenario (Bottlenecks) How did you plan the Load? What are the Criteria? What is the relation between Response Time and Thr... VuGen does not launch any applications while recor... License Manager was not initializ ed After adding a permanent license in LoadRunner 11.... Error - 26547: Authentication required, please use ... Error: Error - 27279: Internal Error Report init... Ajax TruClient Protocol in Load Runner Client certificates in Truclient Performance Test Plan Use Perfmon to monitor servers and find bottleneck... LR function web_reg_save_param(); in load runner(d... Difference between Application server and Web serv...

So now to vary the TPM to x with the same 24 virtual users, I will need to have a pacing of 24 *60/x. I got this from an old-fashioned logic which goes in my head this way: 24 users with a pacing of 60 seconds generate a TPM of 24 24 users with a pacing of 120 seconds generate a TPM of 24 * 60/120 24 users with a pacing of x seconds generate a TPM of 24 * 60/x So using above formula, to vary the load from 20 to 4 TPM I will need to vary the VU pacing from 72 to 360. So now we have: Script Script 1 TPM 4 to 20 Number o f VUs 24 Pacing (sec) Random (72 to 360) Ramp Up 1 VU/5sec

Of course, there's a caveat. The range of 72 to 360 seconds has an arithmetic mean of 216. 120 is actually the harmonic mean of the 2 numbers. So the actual variation in TPM will depend on the distribution of random numbers that LoadRunner generates within the given range. If it generates the numbers with a uniform distribution around the arithmetic mean of the range, then we have a problem. I ran a quick test to find this out. I created an LR script and used the rand() function to generate 1000 numbers between the range with the assumption that LR uses a similar function to generate the random pacing values. int i; srand(time(NULL)); for (i=0;i<1000 br="" i="">lr_output_message("%d\n", rand() % 289 + 72); } And of course, the average came out close to the arithmetic mean of 72 and 360, which is 216. So with the assumption that the function used by LoadRunner for generating random pacing values generates numbers that are uniformly distributed around the arithmetic mean of the range, we'll need to modify the range of pacing values so that the arithmetic mean of the range gives us the arithmetic mean of the TPM that we want...phew. What it means is that the above pacing values need to be modified from 72 to 360 (arithmetic mean = 216) to 72 to 168 (arithmetic mean = 120).

Important aspects of Performance test project Requirement Gathering for Performance test Project... Save Dynamic Parameter value in Text File using lo... Transactional Concurrency in Load testing Why response time of a page does not equal the sum... Performance Testing Estimation Preparation Factors Affecting Performance of web application Test Strategy Vs Test Planning Case Studies Identifying Performancetesting Obj... How to calculate sessions per hour in performance ... If there are no requirements, how will you write y... How Domain Knowledge is important for a tester? All about web_url and web_link in LoadRunner

from 72 to 360 (arithmetic mean = 216) to 72 to 168 (arithmetic mean = 120). However, this gives us the TPM range of 20 to 8.6 TPM with a harmonic mean of 12TPM. But I'll live with it. I would rather have the average load stay around 12TPM. So here are the new values. Note the asterisk on TPM. I need to mention in the test plan that the actual TPM will vary from 8.6 to 20TPM with an average of 12TPM. Script Script 1 TPM* 4 to 20 Number o f VUs 24 Pacing (sec) Random (72 to 168) Ramp Up 1 VU/5sec

LoadRunner unique file name with web_save_timestam... Examples on LoadRunner Regular Expressions How to run LoadRunner Controller from command line... How to get LoadRunner iteration number - using glo... CHECK POINTS- - LoadRunner web_reg_find function - H... LoadRunner - how to convert a plain text to URL fo... How to record a file saving, performed by user fro... LoadRunner VuGen scripting - How to automatically ... LoadRunner License Information

Posted by raviteja gorentla

+2 Re c om m e nd this on Google

No comments:
Post a Comment

ORACLE NCA protocol Difference between Thick Client and Thin Client Performance Center Interview QuestionsEnough stuf...

Newer Post
Subscribe to: Post Comments (Atom)

Home

Older Post

Difference between Loadrunner and performance cent... Difference between HTML, URL and GUI Mode Recordin... Why are my scripts/vusers failing? Tips for Scenario Building General Guidelines for Scripting Does LoadRunner transaction response time include ... Do's and Dont's Of Testing Volume Testing Sap Gui Protocol in loadRunner Sap Web Protocol in Load Runner WAN Emulation in LoadRunner LoadRunner 11.50's licensing mechanism has changed... Creating Data For PeopleSoft in Load runner How SAML - Open SSO works? SAP BUSINESS OBJECTS [SAPBO] PERFORMANCE TESTING Impact of Threadpool Architecture on Application P... lr_save_datetime function in Loadrunner Function to write current system Time WINSOCKET PROTOCOL IN LOAD RUNNER Difference in Response times with Different LoadGe... Analysis - Comparing data from LoadRunner Graphs w... VB Script VUser Protocol - Essbase Hyperion Applic... Loadrunner Controller issues Converting a String from HTML to URL format in LR JAVA RMI Protocol in LOADRUNNER Web Resource Graphs in Load runner analysis Scripting for ODBC Protocol in LOADRUNNER Playback LoadRunner through Fiddler Transferring a LoadRunner license to another machi... Problem with LoadRunner web_text_link LoadRunner SAP Web and Certificate problem Things to correlate in a SAP Web LoadRunner Scipt LoadRunner Unix Time Stamp with milliseconds Script to delete unwanted LoadRunner vugen files Excel Macro to read a LoadRunner scenario file Recording LoadRunner Oracle Forms Object Names Creating LoadRunner Dynamic Transaction Names Expanding LoadRunner functions LoadRunner Analysis Importing PerfMon Data

Saving results of SQL query to a LoadRunner parame... Set up LoadRunner to run nightly Load Runner Tips and Tricks July 2013 (137) August 2013 (17) October 2013 (12) November 2013 (34) December 2013 (85) 2014 (57)

Live Audience

Choose the Topics

Perf ormance Testing (81) LoadRunner (64) General (46)


Tips n Tricks (45) Ext raSt uf f (44) Vugen (42) Analysis (26) JMet er (25) Errors in LoadRunner (22) Script ing (22) Cont roller (18) Citrix (17) Monitoring (13)
PerformanceCenter (10)

Get this blog's every post in to your mail box for FREE
Email address... Submit

Popular Posts
Functions in load Runner Functions:- 1, In the following example, lr_error_message sends a message to the LoadRunner output window or Application Management ... PACING Calculation Pacing Calculation : D = Duration of the test(test window/time frame) B = Baseline time(total time taken by 1 Vu to complete 1 whole ite... Correlation and web_reg_save_param() Correlation: Saves dynamic data information to a parameter. Session id: Session id is created by the server for security purpose. ... HTTP Response Messages(HTTP CODES) 400 Bad Request Officially : The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the... MEMORY LEAK IN PERFORMANCE TESTING load runner What is Memory leak: in computer science (or leakage, in this context), occurs when a computer program consumes memory but is unable to ...

Translate

Contagious the posts


Es tut uns leid... Wir knnen Ihre Anfrage nicht bearbeiten. Versuchen Sie es jetz t oder ein wenig spter erneut.

Followers
Es tut uns leid... Wir knnen Ihre Anfrage nicht bearbeiten. Versuchen Sie es jetz t oder ein wenig spter erneut.

PDF Man
Co nvert to PDF
Bro wse URL Mo re

Bandwidth Speed Test

C ho o se a d o cume nt Cho o se File No f ile select ed Email ( Th e p d f-fi l e wi l l b e s e n t to th i s e m ail addres s )

SPEED TEST in progress...

Co nvert and send


Ho w to Co nve rt P DF- - >SWF fre e (fo r b lo g g e rs)

copyright@raviteja . Watermark template. Powered by Blogger.

You might also like