Skip to content

Commit

Permalink
minor fix in units
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-castellon committed Jun 3, 2024
1 parent 7af69d3 commit 34e4dc6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/fig9.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# ask for a node that is not ourself
@remote
def f(size):
return bytearray(size * 1024)
return bytearray(size)


def get_iops(size, max_time):
Expand All @@ -41,8 +41,9 @@ def get_iops(size, max_time):
return counter


NUM_TRIALS = 1
NUM_TRIALS = 3
sizes = [1, 10, 100, 1_000, 10_000, 100_000, 1_000_000] # in KBs
sizes = [size * 1000 for size in sizes]
max_times = [1.0] * 4 + [5.0, 50, 5 * 60]
f.set_node(2)
for size in sizes:
Expand All @@ -58,3 +59,5 @@ def get_iops(size, max_time):
thpt = iops * size

log(f"RES:{size},{iops},{thpt}")

log("DONE!")

0 comments on commit 34e4dc6

Please sign in to comment.