X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=test%2Ftools%2Fodl-mdsal-clustering-tests%2Fclustering-performance-test%2Fcreate_plot_data_files.py;fp=test%2Ftools%2Fodl-mdsal-clustering-tests%2Fclustering-performance-test%2Fcreate_plot_data_files.py;h=0000000000000000000000000000000000000000;hb=59e81c38620fa1b61e15771191e35771450b9499;hp=7971394e61158d09ef485cdd0ada7929157c75b5;hpb=072f6e3a8d1bdf8f4c663843589c22d93ba07791;p=integration%2Ftest.git diff --git a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/create_plot_data_files.py b/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/create_plot_data_files.py deleted file mode 100644 index 7971394e61..0000000000 --- a/test/tools/odl-mdsal-clustering-tests/clustering-performance-test/create_plot_data_files.py +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/python -import re - -text_file = open("out.log.txt", "r") -log = text_file.read() -text_file.close() - -data = [] - -pat = re.compile(r'Avg. requests/s: (?P[0-9,\.]+) OK, (?P[0-9,\.]+) Total') - -for line in log.splitlines(): - res = pat.search(line) - if res is not None: - data.append(res.groups('rate1')[0]) -print data - -text_file = open("rates.csv", "w") -text_file.write('Add,Delete\n') -text_file.write('{0},{1}\n'.format(data[0], data[1])) -text_file.close()