Zee's English Blog

2009-Nov-22 - What's the relationship between TPS/Hits per Second/Throughput?---Zee

Yesterday, someone asked me:
What's the relationship between TPS/Hits per Second/Throughput?

He have read a book says "hits per second is TPS, and throughput ramps up when TPS ramps up."

I told him that is wrong in that book.

1. Hits per second is not TPS. TPS is transactions per second.
It's right that hits per second will become larger with TPS. But Hits per second mustn't be TPS.
So what's Hits in LoadRunner?

A small example:
I recorded a script, only open brower and navigate to www.7dtest.com, then stop recording.
I removed all cookies functions.

scripts:
    web_url("www.7dtest.com",
        "URL=http://www.7dtest.com/",
        "Resource=0",
        "RecContentType=text/html",
        "Referer=",
        "Snapshot=t1.inf",
        "Mode=HTML",
        EXTRARES,
        "Url=/wp-content/plugins/nextgen-gallery/css/nggallery.css", ENDITEM,
        "Url=/wp-content/plugins/nextgen-gallery/thickbox/thickbox.css", ENDITEM,
        "Url=/wp-content/plugins/coolplayer/coolplayer_ie.css", ENDITEM,
        "Url=http://www.google-analytics.com/ga.js", ENDITEM,
        "Url=http://www.google-analytics.com/__utm.gif?utmwv=4.5.9&utmn=1697386641&utmhn=www.7dtest.com&utmcs=utf-8&utmsr=1280x800&utmsc=32-bit&utmul=en-us&utmje=1&utmfl=10.0%20r32&utmcn=1&utmdt=7%E7%82%B9%E6%B5%8B%E8%AF%95&utmhid=213291143&utmr=-&utmp=%2F&utmac=UA-5295382-1&utmcc=__utma%3D155685693.299818519.1258940669.1258940669.1258940669.1%3B%2B__utmz%3D155685693.1258940669.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B", ENDITEM,
        "Url=/wp-content/themes/adsimple/i/smalldot.gif", ENDITEM,
        "Url=/wp-content/themes/adsimple/i/arrow.gif", ENDITEM,
        "Url=/wp-content/themes/adsimple/i/dots.gif", ENDITEM,
        "Url=/wp-content/themes/adsimple/i/toparrow2.gif", ENDITEM,
        "Url=/wp-content/themes/adsimple/i/toparrow.gif", ENDITEM,
        "Url=/wp-content/plugins/nextgen-gallery/thickbox/loadingAnimationv3.gif", ENDITEM,
        LAST);

Add the scripts into Controller and setup run-time settings:
1. Ignore think time;
2. Set Run Logic to Number of iteration 1;
3. set Duration to Run nutil completion.
Others as default.

Run the scenario and open analysis.

You can get a result as follow:
Hits per second graph has only one point 5.25.
Open HTTP Responses per Second graph. You can only see on point 5.25 too.
We all know that a http request accord to a http response. So Hit means request.

2. Throughput DOESN'T always ramp up with TPS.
Throughput relates to many factors, like threads of application server(websphere/weblogic...). Perhaps throughput becomes less if you open more threads. I have no case to explain this now. I will compose a post when I have a real case.

That's it.

0 CommentsPost A Comment!Permanent Link

2009-Nov-20 - OK, Start My english blog

I will insist on composing tech articles.

But lots of my articles by chinese.
Now, I hope I can compose English Articles.

The most important thing is Holding On.
1 CommentsPost A Comment!Permanent Link

About Me

Links

Home
View my profile
Archives
Friends
Email Me

Friends