Skip to content
Snippets Groups Projects
Commit 4efefa6a authored by Thomas Fors's avatar Thomas Fors
Browse files

Update with new test results

parent 32c21a83
Branches master
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ distclean:
.PHONY: pdf
pdf:
jupyter nbconvert \
--config report_cfg.py \
--template report.tplx \
--to pdf \
"Python pvAccess Performance Tests.ipynb"
source diff could not be displayed: it is too large. Options to address this: view the blob.
No preview for this file type
This diff is collapsed.
bin/
db/
dbd/
O.*/
iocBoot/**/envPaths
((*- extends 'article.tplx' -*))
((*- extends 'hide_code_article.tplx' -*))
((* block docclass *))
((( super() )))
......
c = get_config()
custom_path = 'conda/share/jupyter/nbextensions/hide_code/Templates'
c.TemplateExporter.template_path.append(custom_path)
#!/usr/bin/env bash
source setup.sh
if [ ! -d $WORK_DIR/conda/lib/python$PY_VER_2/site-packages/jupyter_core ]; then
conda install -y jupyter
fi
if [ ! -d $WORK_DIR/conda/lib/python$PY_VER_2/site-packages/matplotlib ]; then
conda install -y matplotlib
fi
if [ ! -d $WORK_DIR/conda/lib/python$PY_VER_2/site-packages/hide_code ]; then
pip install hide_code
jupyter nbextension install --py hide_code --sys-prefix
jupyter nbextension enable --py hide_code --sys-prefix
jupyter serverextension enable --py hide_code --sys-prefix
fi
......@@ -16,8 +16,10 @@ def main():
description='Runs a series of scaleClient tests')
parser.add_argument('--maxsize', type=int, default=None,
help='size of work queue for p4p client')
parser.add_argument('--duration', type=float, default=60,
help='duratio of each test (sec)')
help='duration of each test (sec)')
parser.add_argument('--timeout', type=float, default=300,
help='timeout for individual tests (sec)')
parser.add_argument('--datafile', type=str, default=None,
......@@ -51,6 +53,8 @@ def main():
# run the client
cmd = 'scripts/scaleClient.py'
cmd += ' --%s' % client
if client == 'p4p' and args.maxsize is not None:
cmd += ' --maxsize %d' % args.maxsize
cmd += ' -n %d' % monitors
cmd += ' --duration %f' % args.duration
if args.datafile is not None:
......
......@@ -137,6 +137,8 @@ class ScaleTest(object):
'callHist': callHist,
'constructionTime': self.constructionTime,
'waitTime': self.waitTime, 'testTime': self.testTime}
if client == 'p4p' and args.maxsize is not None:
results['maxsize'] = args.maxsize
print_msg('done')
return results
......@@ -161,6 +163,8 @@ def main():
help='run test using pvaPy Python client')
parser.add_argument('--p4p', action='store_true',
help='run test using p4p Python client')
parser.add_argument('--maxsize', type=int, default=None,
help='size of internal work queue (p4p only)')
parser.add_argument('--duration', type=float, default=60,
help='duration of test in seconds')
parser.add_argument('--datafile', type=str, default=None,
......@@ -175,7 +179,10 @@ def main():
return
if args.p4p:
context = Context('pva')
if args.maxsize is None:
context = Context('pva')
else:
context = Context('pva', maxsize=args.maxsize)
t = ScaleTest()
t.create_monitors()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment