Skip to content

Instantly share code, notes, and snippets.

@rafalw
Created August 21, 2012 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafalw/3415871 to your computer and use it in GitHub Desktop.
Save rafalw/3415871 to your computer and use it in GitHub Desktop.
Skrypt powłoki wykonujący polecenia testowania serwerów.
#!/bin/bash
for i in 0 1 2 3 4 5 6 7 8 9
do
# Test nginx
ab -n 2000 -c 200 http://192.168.1.2/date_srv.php > tst-nginx-$i
# Test node.js
ab -n 2000 -c 200 http://192.168.1.2:8081/ > tst-node-$i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment