From e26b35667e6fe5b3e216bddab81fe7aa3ef31826 Mon Sep 17 00:00:00 2001 From: Orlando Vazquez Date: Wed, 20 Jan 2010 01:10:35 -0800 Subject: [PATCH] add LICENSE file --- LICENSE | 22 ++++++++++++++++++++++ README.md | 19 +++++++++++-------- azathoth.js | 29 ++++++++++++++++++++++++++++- 3 files changed, 61 insertions(+), 9 deletions(-) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..1bc2c26 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md index c435eed..5f5725a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ NAME ---- -azathoth - HTTP benchmark and load generator tool + azathoth - HTTP benchmark and load generator tool SYNOPSIS -------- @@ -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 @@ -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. @@ -36,13 +38,14 @@ OPTIONS ENVIRONMENT ----------- + azathoth requires node to be installed somewhere on your path. AUTHOR ------ -Orlando Vazquez + Orlando Vazquez SEE ALSO -------- -ab(1) + ab(1) diff --git a/azathoth.js b/azathoth.js index ff08611..d7510e1 100755 --- a/azathoth.js +++ b/azathoth.js @@ -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'); @@ -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;