Skip to content

Instantly share code, notes, and snippets.

@tarasglek
Created September 17, 2013 21:58
Show Gist options
  • Save tarasglek/6601259 to your computer and use it in GitHub Desktop.
Save tarasglek/6601259 to your computer and use it in GitHub Desktop.
#!/bin/bash
#nuke data from previous run
rm *.dat -vf
nsqlookupd/nsqlookupd &
nsqd/nsqd --lookupd-tcp-address=127.0.0.1:4160 --mem-queue-size=1000 &
(cd nsqadmin/ && ./nsqadmin --lookupd-http-address=127.0.0.1:4161) &
wget -c https://github.com/tarasglek/jsonbench/raw/master/jsonbench_sample.tar.gz
sleep 1
ab -c600 -k -t 5 -p jsonbench_sample.tar.gz 'http://127.0.0.1:4151/put?topic=test1'
#observe that the 'Complete requests' that ab submitted < 'Messages' count in dashboard below
firefox http://localhost:4171/topic/test1
sleep 360
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment