Load Testing A Node.js App

62 views
Skip to first unread message

bensternthal

unread,
Feb 6, 2010, 12:36:59 PM2/6/10
to nodejs
I was noodling with best ways to load test a node.js app and wondered
if you had some suggestions based on experience.

I have load tested webapps using selenium and jmeter but not sure what
to use when developing with node.js

Best practices, wisdom & advice are welcome.

- Ben

Isaac Z. Schlueter

unread,
Feb 7, 2010, 2:22:31 AM2/7/10
to nodejs
For load testing, I use Apache Bench. http://httpd.apache.org/docs/2.0/programs/ab.html

--i

lollicode

unread,
Feb 8, 2010, 6:39:58 AM2/8/10
to nodejs
Yep, ab works pretty well, use it all the time.

Sample usage:

$ ab -c 100 -n 1000 http://127.0.0.1:8000/
Concurrency Level: 100
Time taken for tests: 0.230 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Total transferred: 75075 bytes
HTML transferred: 11011 bytes
Requests per second: 4340.26 [#/sec] (mean)
Time per request: 23.040 [ms] (mean)
Time per request: 0.230 [ms]
Transfer rate: 318.21 [Kbytes/sec]

> > - Ben- Hide quoted text -
>
> - Show quoted text -

bensternthal

unread,
Feb 8, 2010, 10:38:58 PM2/8/10
to nodejs
Many thanks for ab especially the example. I will be doing some
apache/node comparisons and I think this will get me pretty far. Later
I will need something that can imitate html events (onclick) I will
investigate selenium for that.

Thanks again.

On Feb 8, 3:39 am, lollicode <lollic...@gmail.com> wrote:
> Yep, ab works pretty well, use it all the time.
>
> Sample usage:
>

> $ ab -c 100 -n 1000http://127.0.0.1:8000/


> Concurrency Level: 100
> Time taken for tests: 0.230 seconds
> Complete requests: 1000
> Failed requests: 0
> Write errors: 0
> Total transferred: 75075 bytes
> HTML transferred: 11011 bytes
> Requests per second: 4340.26 [#/sec] (mean)
> Time per request: 23.040 [ms] (mean)
> Time per request: 0.230 [ms]
> Transfer rate: 318.21 [Kbytes/sec]
>
> On Feb 7, 8:22 am, "Isaac Z. Schlueter" <i...@foohack.com> wrote:
>
>
>

> > Forloadtesting, I use Apache Bench.  http://httpd.apache.org/docs/2.0/programs/ab.html


>
> > --i
>
> > On Feb 6, 9:36 am, bensternthal <booboobe...@gmail.com> wrote:
>

> > > I was noodling with best ways toloadtest a node.js app and wondered


> > > if you had some suggestions based on experience.
>

> > > I haveloadtested webapps using selenium and jmeter but not sure what

Reply all
Reply to author
Forward
0 new messages