summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNauman_Ahad <nauman_ahad@xflowresearch.com>2016-02-02 02:54:48 +0500
committerNauman_Ahad <nauman_ahad@xflowresearch.com>2016-02-02 02:54:48 +0500
commitcbdddad944abba7be2eb848b16b2abc1ce791f50 (patch)
tree2a37d904ea45a78bf9b9ae879eedc9eccb7101a1
parent062d12fc2f6a8de367da50445a8af49b983d0b81 (diff)
Bug Fixes for SSL index calculation
Index calcuation for SSL caused a ValueError when converting to float due to the presence of a trailing "k" character. This has ben resolved. Change-Id: I6f7d061977a3a8cbc2aa1afe154df5eeec9feac8 Signed-off-by: Nauman_Ahad <nauman_ahad@xflowresearch.com>
-rwxr-xr-xdata/qtip_creds.sh22
-rw-r--r--data/ref_results/index_calculation.py9
-rw-r--r--docs/compute_testcases.rst9
3 files changed, 24 insertions, 16 deletions
diff --git a/data/qtip_creds.sh b/data/qtip_creds.sh
index 490de859..bcd4c246 100755
--- a/data/qtip_creds.sh
+++ b/data/qtip_creds.sh
@@ -3,21 +3,25 @@
DEST_IP=$1
echo $INSTALLER_TYPE
echo $INSTALLER_IP
-
+sshoptions="-o StrictHostKeyChecking=no"
case "$INSTALLER_TYPE" in
apex)
- PSWD="vagrant";;
+ PSWD="vagrant"
+ ;;
fuel)
- PSWD="r00tme";;
+ PSWD="r00tme"
+ sshpass -p $PSWD scp $sshoptions ./data/QtipKey.pub root@$INSTALLER_IP:/root
+ sshpass -p $PSWD scp $sshoptions ./data/QtipKey root@$INSTALLER_IP:/root
+ sshpass -p $PSWD ssh $sshoptions root@$INSTALLER_IP "ssh-copy-id -i /root/QtipKey.pub root@$DEST_IP && rm -rf /root/QtipKey && rm -rf /root/QtipKey.pub"
+ ;;
compass)
- PSWD="root";;
+ PSWD="root"
+ sshpass -p $PSWD scp $sshoptions ./data/QtipKey.pub root@$INSTALLER_IP:/root
+ sshpass -p $PSWD scp $sshoptions ./data/QtipKey root@$INSTALLER_IP:/root
+ sshpass -p $PSWD ssh $sshoptions root@$INSTALLER_IP "ssh-copy-id -i /root/QtipKey.pub root@$DEST_IP && rm -rf /root/QtipKey && rm -rf /root/QtipKey.pub"
+ ;;
joid)
PSWD="joid";;
*)
echo "Unkown installer $INSTALLER_TYPE specified";;
esac
-echo $PWD
-sshoptions="-o StrictHostKeyChecking=no"
-sshpass -p $PSWD scp $sshoptions ./data/QtipKey.pub root@$INSTALLER_IP:/root
-sshpass -p $PSWD ssh $sshoptions root@$INSTALLER_IP "ssh-copy-id -i /root/QtipKey.pub root@$DEST_IP && rm -rf /root/QtipKey.pub"
-
diff --git a/data/ref_results/index_calculation.py b/data/ref_results/index_calculation.py
index 488ed867..74c8b14b 100644
--- a/data/ref_results/index_calculation.py
+++ b/data/ref_results/index_calculation.py
@@ -36,9 +36,10 @@ def generic_index(dict_gen,testcase,reference_num,*args):
count=count+1
for arg in args:
if arg == args[c-1]:
- result=float(dict_temp.get(str(arg)))
+ try:
+ result=float(dict_temp.get(str(arg)))
+ except ValueError:
+ result=float(dict_temp.get(str(arg))[:-1])*1000
dict_temp=dict_temp.get(str(arg))
total=total+result
- return compute_index(total, reference_num, count)
-
- \ No newline at end of file
+ return compute_index(total, reference_num, count)
diff --git a/docs/compute_testcases.rst b/docs/compute_testcases.rst
index 6e91698d..c8e5212d 100644
--- a/docs/compute_testcases.rst
+++ b/docs/compute_testcases.rst
@@ -33,7 +33,7 @@ Both Single CPU performance is measured along multi-cpu performance.
Dhrystone, however, is a dated benchmark and has some short comings.
Written in C, it is a small program that doesn't test the CPU memory subsystem. Additionally, dhrystone results could be modified by optimizing the compiler and insome cases hardware configuration.
-References:
+References: http://www.eembc.org/techlit/datasheets/dhrystone_wp.pdf
2. Whetstone
@@ -41,7 +41,7 @@ Whetstone is a synthetic benchmark to measure CPU floating point operation perfo
Like Dhrystone, Whetstone is a dated benchmark and has short comings.
-References:
+References: http://www.netlib.org/benchmark/whetstone.c
3. OpenSSL Speed
@@ -49,7 +49,7 @@ OpenSSL Speed can be used to benchmark compute performance of a machine. In QTIP
1. RSA signatures/sec signed by a machine
2. AES 128-bit encryption throught for a machine for cipher block sizes
-References
+References: https://www.openssl.org/docs/manmaster/apps/speed.html
4. RAMSpeed
@@ -62,6 +62,7 @@ d. Triad: a(i)=b(i)+c(i)*d
INTmem uses integers in these four benchmarks whereas FLOATmem uses floating points for these benchmarks.
+References: http://alasir.com/software/ramspeed/, https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/W51a7ffcf4dfd_4b40_9d82_446ebc23c550/page/Untangling+memory+access+measurements
5. DPI
@@ -69,3 +70,5 @@ nDPI is a modified variant of OpenDPI, Open source Deep packet Inspection, tha
An example application called *pcapreader* has been developed and is available for use along nDPI.
A sample .pcap file is passed to the *pcapreader* application. nDPI classifies traffic in the pcap file into different categories based on string matching . The *pcapreader* application provides a throughput number for the rate at which traffic was classified, indicating a machine's computational performance. The results are run 10 times and an average is taken for the obtained number.
+
+References: http://www.ntop.org/products/deep-packet-inspection/ndpi/, http://www.ntop.org/wp-content/uploads/2013/12/nDPI_QuickStartGuide.pdf