LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-11-2008, 11:34 AM   #1
carbohydrate
LQ Newbie
 
Registered: Aug 2008
Location: Los Angeles, CA, USA
Posts: 5

Rep: Reputation: 0
Apache Benchmark tool (ab)?


I am looking for a tool that can simulate a complete browser request to a LAMP based site including downloading of images, etc.

Simple tools like curl and wget dont do that, but I was looking at ab it seems like it can. The tool I need has to be command line based so I can run it via cron and parse the output with a script.

Does anyone have any experience with ab (or any other tools)?

I am not looking for a load testing tool, although such a feature might be handy one day.

My main concern is that it simulates a real browser request as closely as possible. I do not need per object stats, though that would be helpful, but rather, simple stats like total time, time to first byte, etc.

Thanks!

.carbohydrate.
 
Old 08-11-2008, 01:19 PM   #2
grepmasterd
Member
 
Registered: Aug 2003
Location: Seattle
Distribution: ubuntu, lately
Posts: 182
Blog Entries: 1

Rep: Reputation: 35
ab is a performance tool and only evaluates the HTTP headers it retrieves and the raw data sizes of retrieved objects. It
doesn't interpret the html it retrieves, so it cannot retrieve referenced objects. Are you sure wget doesn't work? what about:

for example:
Code:
$ wget --page-requisites http://www.greenacresweb.com/

$ find www.greenacresweb.com/
www.greenacresweb.com/
www.greenacresweb.com/greenacres.css
www.greenacresweb.com/images
www.greenacresweb.com/images/GABanner2.jpg
www.greenacresweb.com/images/welcome.jpg
www.greenacresweb.com/index.html
is this what you're trying to do? it also seems that you're trying to benchmark each object. maybe I'm misunderstanding your goal.

curl and wget are retrieval tools. ab and others like httperf are performance tools.

Last edited by grepmasterd; 08-11-2008 at 01:21 PM. Reason: correcting formatting
 
Old 08-11-2008, 01:30 PM   #3
carbohydrate
LQ Newbie
 
Registered: Aug 2008
Location: Los Angeles, CA, USA
Posts: 5

Original Poster
Rep: Reputation: 0
thanks for the reply.

my goal is to make a simple script that measures the response time of a site and time to page load including all objects on the page. I just noticed that ab does not retrieve any of the content (images, css, etc).

The site is writting on the Rails framework.
 
Old 08-11-2008, 02:16 PM   #4
kenoshi
Member
 
Registered: Sep 2007
Location: SF Bay Area, CA
Distribution: CentOS, SLES 10+, RHEL 3+, Debian Sarge
Posts: 159

Rep: Reputation: 32
Most http benchmark tools won't interpret htmls.

The only tool I've used that does what you want with decent automation/logging/recording support is httpwatch pro.

Sadly its an IE based plugin...

httpfox is for firefox, but it doesn't have the automation or logging/recording features.

You could try automating browsing with iMacros, filter through tcpdump or wireshark and parse the caps with say chaosreader or a custom script you write...kind of overkill but it should work.

There are SaaS offerings that does this btw. You might want to try out Gomez. We use them for our shop, its great...webmetrics does the same thing, but I think somewhat cheaper.

Hope this helps.

Last edited by kenoshi; 08-11-2008 at 02:18 PM.
 
Old 08-11-2008, 04:41 PM   #5
carbohydrate
LQ Newbie
 
Registered: Aug 2008
Location: Los Angeles, CA, USA
Posts: 5

Original Poster
Rep: Reputation: 0
hey Kenoshi,

yes, Ive used Gomez and Keynote before, however for small sites it was hard to justify the per URL fee so I thought it'd be fun to try building my own tool that is good enough to get the basics.

I am playing with wget -p (thanks grepmasterd) and now jmeter as well. I found some articles on getting jmeter running through Ant.
 
Old 08-11-2008, 11:55 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
How about using the Perl modules eg WWW::Mechanize http://search.cpan.org/~petdance/WWW...W/Mechanize.pm
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Linux macro benchmark tool stabilizes LXer Syndicated Linux News 0 06-08-2008 07:20 PM
Apache benchmark test VERY SLOW from clean install! wepeel Linux - Enterprise 0 10-04-2004 05:35 PM
simple benchmark for apache question. megaspaz Linux - General 2 11-05-2003 05:20 PM
Benchmark Software tool ? membrax Linux - Hardware 3 01-17-2003 02:18 PM
general benchmark tool rlpt Linux - General 2 03-05-2002 07:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration