diff --git a/perf_testing/scripts/highspeed_create.py b/perf_testing/scripts/highspeed_create.py index 7e7b410f0..493975be4 100755 --- a/perf_testing/scripts/highspeed_create.py +++ b/perf_testing/scripts/highspeed_create.py @@ -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.') diff --git a/perf_testing/scripts/highspeed_read.py b/perf_testing/scripts/highspeed_read.py index 454204846..9dd363bed 100755 --- a/perf_testing/scripts/highspeed_read.py +++ b/perf_testing/scripts/highspeed_read.py @@ -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: diff --git a/perf_testing/scripts/read.py b/perf_testing/scripts/read.py index 294bb4f02..f8294d9b5 100755 --- a/perf_testing/scripts/read.py +++ b/perf_testing/scripts/read.py @@ -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"})) \ No newline at end of file +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"})) \ No newline at end of file diff --git a/perf_testing/scripts/write.py b/perf_testing/scripts/write.py index c9f74ed3b..5365cb526 100755 --- a/perf_testing/scripts/write.py +++ b/perf_testing/scripts/write.py @@ -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"})) \ No newline at end of file +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"})) \ No newline at end of file