CNode

[ANN] siege.js by kissjs.org publish 0.0.2

Gguilin发布于14 年前最后回复14 年前11 回复7166 浏览0 收藏

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.

查看回复

回复 (11)

G
guilin#1·14 年前
F
fengmk2#2·14 年前
引用 guilin忘了帖地址了 [https://github.com/kissjs/siege.js][1] [1]: https://github.com/kissjs/siege.js

可以直接贴到原文上啊,哈哈,再加个npm install siege安装方式会更好。

F
fengmk2#3·14 年前

已经在使用,不错。

H
hpf1908#4·14 年前

已测试,方便多了

G
guilin#6·14 年前
引用 pittmak语法很简洁漂亮!

在maillist里看见你了

G
guilin#7·14 年前
引用 guilin忘了帖地址了 [https://github.com/kissjs/siege.js][1] [1]: https://github.com/kissjs/siege.js

@suqian 哦, 你是说原创文章版块啊, 好像发帖时没有选版块的地方.

P
pittmak#8·14 年前
引用 pittmak语法很简洁漂亮!

@guilin 是的,我在!

D
DoubleSpout#9·14 年前

多搞几台可以ddos攻击吗?

P
pittmak#10·14 年前

语法很简洁漂亮!

G
guilin#11·14 年前
引用 DoubleSpout多搞几台可以ddos攻击吗?

不可以, ddos 是要靠连接数来攻击的

参与回复
登录后即可参与回复。登录