diff --git a/eval.py b/eval.py index aeee7833d15e07f65313fec28653bcc4e013cbb1..210483d3b48f87ca0f98c60e9407ee14e913f114 100755 --- a/eval.py +++ b/eval.py @@ -619,6 +619,8 @@ if __name__ == '__main__': '--local', help='run benchmark on localhost', action='store_true') + parser.add_argument('--host', + help='host running the echo servers') parser.add_argument('-r', '--runs', help='benchmark runs', @@ -713,6 +715,13 @@ if __name__ == '__main__': HOST = "localhost" + if args.host: + if HOST == 'localhost': + print('ERROR: host optioan and local option can not be passed at once') + sys.exit(1) + + HOST = args.host + if args.implementations: SERVER_CMDS = { i: c