Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Bash script for running http-simple benchmarks

  • Loading branch information...
isaacs committed Mar 7, 2012
1 parent 17da424 commit fb53986a801bc36067a5b5b64cb23b05e3aa6d60
Showing with 10 additions and 0 deletions.
  1. +10 −0 benchmark/http.sh
@@ -0,0 +1,10 @@
#!/bin/bash
cd "$(dirname "$(dirname $0)")"
sudo sysctl -w net.inet.ip.portrange.first=12000
sudo sysctl -w net.inet.tcp.msl=1000
sudo sysctl -w kern.maxfiles=1000000 kern.maxfilesperproc=1000000
ulimit -n 100000
./node benchmark/http_simple.js || exit 1 &
sleep 1
ab -n 30000 -c 100 http://127.0.0.1:8000/bytes/123 | grep Req
killall node

0 comments on commit fb53986

Please sign in to comment.
You can’t perform that action at this time.