Skip to content

Commit

Permalink
Merge pull request #26 from stvoutsin/main
Browse files Browse the repository at this point in the history
Added some additional output / include validity of cell output in result
  • Loading branch information
stvoutsin authored Mar 4, 2022
2 parents 1f6bc97 + f50860a commit e10766e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions aglais_benchmark/aglais_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ def run(self, concurrent=False, users=1):

end = time.time()
result = "SUCCESS"
output_status = "VALID"

for res in results:
if not res:
result = "FAILED"
Expand All @@ -144,12 +146,15 @@ def run(self, concurrent=False, users=1):
for k,v in res.items():
if v["status"] != "SUCCESS":
result = v["status"]
break

if v["valid"] != "TRUE":
output_status = "INVALID"


if self.verbose:
print ("Test completed! ({:.2f} seconds)".format(end-start))

print ("------------ Test Result: [" + result + "] ------------")
print ("------------ Test Completion: [" + result + "] ------------ Test Output: [" + output_status + "] ------------" )

if self.verbose:
print (results)
Expand Down Expand Up @@ -218,3 +223,4 @@ def _run_single(self, iterable=0, concurrent=False):
# Multi-user concurrent benchmark
AglaisBenchmarker("../config/notebooks/notebooks_quick_pi.json", "../config/zeppelin/").run(concurrent=True, users=3)


0 comments on commit e10766e

Please sign in to comment.