blob: 390bf6771f787c0410a87731d64db11830716b68 [file] [log] [blame]
Yulia Portnovab0c977c2015-12-11 19:23:28 +02001#!/bin/bash
2
3set -e
4
5
6while [[ $# > 1 ]]
7do
8key="$1"
9
10case $key in
11 url)
12 URL="$2"
13 shift
14 ;;
15 times)
16 TIMES="$2"
17 shift
18 ;;
19 *)
20 echo "Unknown option $key"
21 exit 1
22 ;;
23esac
24shift
25done
26
27OMGPATN=/tmp
28
29cd "$OMGPATN"
30source venv/bin/activate
31
32cd omgbenchmark/rally_plugin
33
34#sed -i -e "s,rabbit:\/\/guest:guest@localhost\/,$URL,g" deployment.json
35#sed -i -e "s,times\": 100,times\": $TIMES,g" task.json
36
37#rally --plugin-paths . deployment create --file=deployment.json --name=test2 &> /dev/null
38rally --plugin-paths . task start task.json &> ~/omg.log
39cat ~/omg.log | grep "Load duration" | grep -o '[0-9,.]\+'