diff --git a/Client/Client.py b/Client/Client.py index d1b61e2..b24dce0 100644 --- a/Client/Client.py +++ b/Client/Client.py @@ -18,11 +18,13 @@ # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # + from __future__ import print_function import argparse, ast, hashlib, json, math, multiprocessing, os import platform, re, requests, shutil, subprocess, sys, time, zipfile + # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # HTTP_TIMEOUT = 30 # Timeout in seconds for requests @@ -419,7 +421,7 @@ def computeMultiThreadedBenchmark(arguments, engine): # Log and return computed bench and speed print ('Bench for {0} is {1}'.format(engine['name'], bench[0])) - print ('speed for {0} is {1}\n'.format(engine['name'], int(avg))) + print ('Speed for {0} is {1}\n'.format(engine['name'], int(avg))) return (bench[0], avg) def computeAdjustedTimecontrol(arguments, data, nps): diff --git a/OpenBench/utils.py b/OpenBench/utils.py index 4f4e4a0..2e29d44 100644 --- a/OpenBench/utils.py +++ b/OpenBench/utils.py @@ -384,20 +384,19 @@ def workloadDictionary(test, result, machine): 'book' : OPENBENCH_CONFIG['books'][test.bookname], 'timecontrol' : test.timecontrol, 'engine' : test.engine, + 'dev' : { 'id' : test.dev.id, 'name' : test.dev.name, 'source' : test.dev.source, 'protocol' : test.dev.protocol, 'sha' : test.dev.sha, 'bench' : test.dev.bench, - 'options' : test.devoptions, - 'network' : test.devnetwork, + 'options' : test.devoptions, 'network' : test.devnetwork, }, 'base' : { 'id' : test.base.id, 'name' : test.base.name, 'source' : test.base.source, 'protocol' : test.base.protocol, 'sha' : test.base.sha, 'bench' : test.base.bench, - 'options' : test.baseoptions, - 'network' : test.basenetwork, + 'options' : test.baseoptions, 'network' : test.basenetwork, }, }, }