Skip to content

Commit

Permalink
Making pipeline consistent with the units (#1461)
Browse files Browse the repository at this point in the history
  • Loading branch information
syeleti-msft committed Sep 6, 2024
1 parent fe4a91b commit a42da59
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion perf_testing/scripts/highspeed_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def main(folder, num_files):
total_data_written = num_files * 20 # in GB
speed_gbps = (total_data_written * 8) / total_time # converting GB to Gb and then calculating Gbps

print(json.dumps({"name": "create_10_20GB_file", "total_time": total_time, "speed": speed_gbps, "unit": "GiB/s"}))
print(json.dumps({"name": "create_10_20GB_file", "total_time": total_time, "speed": speed_gbps / 8, "unit": "GiB/s"}))

if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Create multiple 20GB files in parallel.')
Expand Down
2 changes: 1 addition & 1 deletion perf_testing/scripts/highspeed_read.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def main(file_paths):
total_size_gb = total_size / (1024 ** 3) # Convert bytes to GB
speed_gbps = (total_size * 8) / (time_taken * 10**9) # Convert bytes to bits and calculate speed in Gbps

print(json.dumps({"name": "read_10_20GB_file", "total_time": time_taken, "speed": speed_gbps, "unit": "GiB/s"}))
print(json.dumps({"name": "read_10_20GB_file", "total_time": time_taken, "speed": speed_gbps / 8, "unit": "GiB/s"}))

if __name__ == "__main__":
if len(sys.argv) < 2:
Expand Down
2 changes: 1 addition & 1 deletion perf_testing/scripts/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
read_mbps = ((bytes_read/read_time) * 8)/(1024 * 1024)
total_mbps = ((bytes_read/total_time) * 8)/(1024 * 1024)

print(json.dumps({"name": "read_" + size + "GB", "open_time": open_time, "read_time": read_time, "close_time": close_time, "total_time": total_time, "read_mbps": read_mbps, "speed": total_mbps, "unit": "MiB/s"}))
print(json.dumps({"name": "read_" + size + "GB", "open_time": open_time, "read_time": read_time, "close_time": close_time, "total_time": total_time, "read_mbps": read_mbps / 8, "speed": total_mbps / 8, "unit": "MiB/s"}))
2 changes: 1 addition & 1 deletion perf_testing/scripts/write.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@
write_mbps = ((bytes_written/write_time) * 8)/(1024 * 1024)
total_mbps = ((bytes_written/total_time) * 8)/(1024 * 1024)

print(json.dumps({"name": "write_" + size + "GB", "open_time": open_time, "write_time": write_time, "close_time": close_time, "total_time": total_time, "write_mbps": write_mbps, "speed": total_mbps, "unit": "MiB/s"}))
print(json.dumps({"name": "write_" + size + "GB", "open_time": open_time, "write_time": write_time, "close_time": close_time, "total_time": total_time, "write_mbps": write_mbps / 8, "speed": total_mbps / 8, "unit": "MiB/s"}))

0 comments on commit a42da59

Please sign in to comment.