Sponsored Content
Top Forums Shell Programming and Scripting Stress testing php files at Unix/Linux Command line Post 302447870 by Malleswari on Tuesday 24th of August 2010 02:31:04 PM
Old 08-24-2010
is there anyway of getting the response time or through put measurements?
Basically I want to see Response time of these files as no.of concurrent users increases

thanks for ur prompt responses

---------- Post updated at 01:31 PM ---------- Previous update was at 01:03 PM ----------

I have modified the code to get the response time as below
time( for ((N=0; N<10; N++)); do echo test_performance.php test_performance2.php ; done | xargs -P 10 --max-args=1 php)

the result is as
real 0m42.417s
user 0m29.537s
sys 0m0.399s


which time i need to consider as part of response time?

Last edited by Malleswari; 08-24-2010 at 03:11 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

testing for regex at command line

hi unixers, i wonder if someone can tell me how i can check for a regex at the command line? if any parameter begins with a special character then do this else do thatthanks for your help. (4 Replies)
Discussion started by: ankimo
4 Replies

2. UNIX and Linux Applications

Solaris & Linux memory stress test?

I'm looking for a script or some other application that will use up a lot of memory on a Solaris or Linux server, in order to test a monitoring application. So far I have found a script that's good for CPU usage but it does nothing for memory. I have also tried the application called 'stress'... (0 Replies)
Discussion started by: Kraas
0 Replies

3. Programming

Stress testing memory using malloc in linux ??

Hi to all, Recently i am testing an equipment that runs in i586 fedora linux. I have to test mmap function. For that i determined to fill the memory and run the required application to check whether it throws any mmap error regarding low resources. This is the line that does the allocation. ... (3 Replies)
Discussion started by: frozensmilz
3 Replies

4. Shell Programming and Scripting

Convert directory of text files to Unix/Linux Line Ending

I need help converting a directory of *.txt with Windows line ending to UTF-8 character encoding and Unix/Linux line ending. (9 Replies)
Discussion started by: chipperuga
9 Replies

5. Shell Programming and Scripting

linux shell script to take variables from two different files line by line

Friends I need to have a shell script which will feed variables from two different files line-by-line. For example, I have two files - permission and file_name. Contents of permission is - 644 755 .... contents of file_name /file1 /file2 ..... Now I want 644 permission will be... (4 Replies)
Discussion started by: atanubanerji
4 Replies

6. Shell Programming and Scripting

How to read a two files, line by line in UNIX script and how to assign shell variable to awk ..?

Input are file and file1 file contains store.bal product.bal category.bal admin.bal file1 contains flip.store.bal ::FFFF:BADC:CD28,::FFFF:558E:11C5,6,8,2,1,::FFFF:81C8:CA8B,::FFFF:BADC:CD28,1,0,0,0,::FFFF:81C8:11C5,2,1,0,0,::FFFF:81DC:3111,1,0,1,0 store.bal.... (2 Replies)
Discussion started by: veeruasu
2 Replies

7. Shell Programming and Scripting

Perl command line option '-n','-p' and multiple files: can it know a file name of a printed line?

I am looking for help in processing of those options: '-n' or '-p' I understand what they do and how to use them. But, I would like to use them with more than one file (and without any shell-loop; loading the 'perl' once.) I did try it and -n works on 2 files. Question is: - is it possible to... (6 Replies)
Discussion started by: alex_5161
6 Replies

8. What is on Your Mind?

Saturday May 4th the Forums Will Briefly Break Testing PHP 5.6 to PHP 7.0

On Saturday May 4th the forums will briefly break when I switch our Apache PHP 5.6 module to PHP 7.0. Previously, I had two sites set up for testing the migration, but for many reasons, the second site has additional issues unrelated to PHP 7.0 so it is hard to debug on a different site and... (3 Replies)
Discussion started by: Neo
3 Replies

9. UNIX for Beginners Questions & Answers

Single line archive log files command if exceed certain limit in Linux

Hello Guys, Is there a single line archive command to zip or tar log files which is larger than certain size limit ? Do let me know if there is any. Thanks (7 Replies)
Discussion started by: UnknownGuy
7 Replies

10. UNIX for Beginners Questions & Answers

3rd party stress testing services

Hi all, bit of a forum newb here, so apologies if this has been covered else where, but I wonder if any of you has any experience with stress testing servers, specifically using 3rd party services. We run a very busy production system, and just haven't been able to simulate the user activity while... (1 Reply)
Discussion started by: dare99
1 Replies
HTTP::Response(3)					User Contributed Perl Documentation					 HTTP::Response(3)

NAME
HTTP::Response - Class encapsulating HTTP Responses SYNOPSIS
require HTTP::Response; DESCRIPTION
The "HTTP::Response" class encapsulates HTTP style responses. A response consists of a response line, some headers, and (potentially empty) content. Note that the LWP library also uses HTTP style responses for non-HTTP protocol schemes. Instances of this class are usually created and returned by the "request()" method of an "LWP::UserAgent" object: #... $response = $ua->request($request) if ($response->is_success) { print $response->content; } else { print $response->error_as_HTML; } "HTTP::Response" is a subclass of "HTTP::Message" and therefore inherits its methods. The inherited methods most often used are header(), push_header(), remove_header(), and content(). The header convenience methods are also available. See HTTP::Message for details. The following additional methods are available: $r = HTTP::Response->new($rc, [$msg, [$header, [$content]]]) Constructs a new "HTTP::Response" object describing a response with response code $rc and optional message $msg. The message is a short human readable single line string that explains the response code. $r->code([$code]) $r->message([$message]) $r->request([$request]) $r->previous([$previousResponse]) These methods provide public access to the object attributes. The first two contain respectively the response code and the message of the response. The request attribute is a reference the request that caused this response. It does not have to be the same request as passed to the $ua->request() method, because there might have been redirects and authorization retries in between. The previous attribute is used to link together chains of responses. You get chains of responses if the first response is redirect or unauthorized. $r->status_line Returns the string "<code> <message>". If the message attribute is not set then the official name of <code> (see HTTP::Status) is sub- stituted. $r->base Returns the base URI for this response. The return value will be a reference to a URI object. The base URI is obtained from one the following sources (in priority order): 1. Embedded in the document content, for instance <BASE HREF="..."> in HTML documents. 2. A "Content-Base:" or a "Content-Location:" header in the response. For backwards compatability with older HTTP implementations we will also look for the "Base:" header. 3. The URI used to request this response. This might not be the original URI that was passed to $ua->request() method, because we might have received some redirect responses first. When the LWP protocol modules produce the HTTP::Response object, then any base URI embedded in the document (step 1) will already have initialized the "Content-Base:" header. This means that this method only performs the last 2 steps (the content is not always available either). $r->as_string Returns a textual representation of the response. Mainly useful for debugging purposes. It takes no arguments. $r->is_info $r->is_success $r->is_redirect $r->is_error These methods indicate if the response was informational, sucessful, a redirection, or an error. $r->error_as_HTML() Returns a string containing a complete HTML document indicating what error occurred. This method should only be called when $r->is_error is TRUE. $r->current_age Calculates the "current age" of the response as specified by <draft-ietf-http-v11-spec-07> section 13.2.3. The age of a response is the time since it was sent by the origin server. The returned value is a number representing the age in seconds. $r->freshness_lifetime Calculates the "freshness lifetime" of the response as specified by <draft-ietf-http-v11-spec-07> section 13.2.4. The "freshness life- time" is the length of time between the generation of a response and its expiration time. The returned value is a number representing the freshness lifetime in seconds. If the response does not contain an "Expires" or a "Cache-Control" header, then this function will apply some simple heuristic based on 'Last-Modified' to determine a suitable lifetime. $r->is_fresh Returns TRUE if the response is fresh, based on the values of freshness_lifetime() and current_age(). If the response is no longer fresh, then it has to be refetched or revalidated by the origin server. $r->fresh_until Returns the time when this entiy is no longer fresh. COPYRIGHT
Copyright 1995-2001 Gisle Aas. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. libwww-perl-5.65 2001-11-15 HTTP::Response(3)
All times are GMT -4. The time now is 07:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy