Skip to content

Commit

Permalink
adding dump of combined results (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
bringlein authored Jul 8, 2024
1 parent 3abbcd1 commit d0545a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ REQUESTS_FILENAME=sample_requests.json
# results file
RESULTS_FILENAME=results.json

# filename for combined results
RESULTS_ALL_FILENAME=results_all.json

# number of virtual users
NUM_USERS=1

Expand Down
5 changes: 5 additions & 0 deletions fmperf/loadgen/sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@
results.extend(tmp["results"])

parse_results(results, print_df=True)

outfile = f"/requests/{os.environ['RESULTS_ALL_FILENAME']}"
print(f">> writing all results to file: {outfile}")
with open(outfile, "w") as f:
json.dump(results, f)

0 comments on commit d0545a2

Please sign in to comment.