I forgot add an example for it.

siege()
.host('localhost')
.on(3000)
.get('/')
.attack();

2012/5/29 Osher El-Netanany <[email protected]>

> What can we do to add the ability to siege an external server?
> I mean - instead of providing app.js - I want to provide a base URL to an
> exteranal server.
>
> Do you think it is simple to add? :)
>
> On Sun, May 6, 2012 at 7:04 PM, jason.桂林 <[email protected]> wrote:
>
>> siege.js is a http benchmark module.
>>
>> features:
>>
>> * benchmark with keep alive connection, (useful on mac os)
>> * colorful report
>> * multiple task define
>> * cookie support (>= 0.0.2)
>>
>> example:
>>
>> siege()
>>>   .on(3000)
>>>   .for(10000).times
>>>   .get('/')
>>>   .attack()
>>
>>
>> for a nodejs app.js, which module.exports = function(req, res), you can
>> use siege start your server, before benchmark, and close server after
>> benchmark.
>>
>> siege(__dirname + '/app.js')
>>>   .on(4000)
>>>   .withCookie
>>>   .for(10000).times
>>>   .concurrent(100)
>>>   .get('/set-cookie')
>>>   .get('/get-cookie')
>>>   .get('/').withoutCookie
>>>   .attack()
>>
>>
>> enjoy it.
>>
>> by kissjs.org.
>>
>> We are looking for collaborators.
>> --
>> Best regards,
>>
>> 桂林 (Gui Lin)
>>
>> guileen@twitter
>> 桂林-V@weibo <http://weibo.com/guileen>
>> guileen@github <https://github.com/guileen>
>>
>>  --
>> Job Board: http://jobs.nodejs.org/
>> Posting guidelines:
>> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
>> You received this message because you are subscribed to the Google
>> Groups "nodejs" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/nodejs?hl=en?hl=en
>>
>
>  --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>



-- 
Best regards,

桂林 (Gui Lin)

guileen@twitter <https://twitter.com/#!/guileen>
桂糊涂@weibo <http://weibo.com/guileen>
guileen@github <https://github.com/guileen>

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to