Skip to content

Commit

Permalink
add LICENSE file
Browse files Browse the repository at this point in the history
  • Loading branch information
orlandov committed Jan 20, 2010
1 parent c729db0 commit e26b356
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 9 deletions.
22 changes: 22 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2010 Orlando Vazquez

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
19 changes: 11 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
NAME
----

azathoth - HTTP benchmark and load generator tool
azathoth - HTTP benchmark and load generator tool

SYNOPSIS
--------
Expand All @@ -11,8 +11,11 @@ SYNOPSIS
DESCRIPTION
-----------

azathoth is for generating lots of HTTP traffic. By utilizing Node.js's powerful
asynchronous abilities it's possible to create an enormous number of requests.
azathoth is for generating lots of HTTP traffic. By utilizing Node.js's
powerful asynchronous abilities it's possible to create an enormous number
of requests.

----

Outside the ordered universe that amorphous blight of nethermost confusion
which blasphemes and bubbles at the center of all infinity; the boundless
Expand All @@ -24,9 +27,8 @@ asynchronous abilities it's possible to create an enormous number of requests.
OPTIONS
-------

-c Number of concurrent connections to to use. Each client will make a
number of requests equal to this number divided by the number of total
requests.
-c Number of concurrent connections to use. Each client will make a
number of requests equal to the total number of requests divided by this number.

-n Total number of requests to make.

Expand All @@ -36,13 +38,14 @@ OPTIONS
ENVIRONMENT
-----------

azathoth requires node to be installed somewhere on your path.

AUTHOR
------

Orlando Vazquez <[email protected]>
Orlando Vazquez <[email protected]>

SEE ALSO
--------

ab(1)
ab(1)
29 changes: 28 additions & 1 deletion azathoth.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
#!/usr/bin/env node

/*
Copyright (c) 2010 Orlando Vazquez
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
*/

var sys = require('sys'),
http = require('http');

Expand Down Expand Up @@ -77,9 +102,11 @@ function printReport(report) {

function doClientRequests() {
var j = 0;

//sys.puts("Client " +clientId+ " reporting in!");

var myId = clientId;
var connection = http.createClient(port, host);
var connection = http.createClient(port, host);
function doRequest() {
if (++j > numRequests/numClients) return;

Expand Down

0 comments on commit e26b356

Please sign in to comment.