Skip to content

Commit

Permalink
fixed calcs
Browse files Browse the repository at this point in the history
  • Loading branch information
bschoening committed Nov 16, 2021
1 parent d28ae18 commit a035f91
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions region_size.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
mb16 = sum(map(lambda x: x < 8*ONEMB, allocations))
mb32 = sum(map(lambda x: x < 16*ONEMB, allocations))
mbMax = sum(map(lambda x: x >= 16*ONEMB, allocations))

print(f"{mb2/total:.2%} would not be humongous with a 2mb region size (-XX:G1HeapRegionSize)")
print(f"{mb4/total:.2%} would not be humongous with a 4mb region size")
print(f"{mb8/total:.2%} would not be humongous with a 8mb region size")
print(f"{mb16/total:.2%} would not be humongous with a 16mb region size")
print(f"{mb32/total:.2%} would not be humongous with a 32mb region size")
print(f"{mb32/total:.2%} would remain humongous with a 32mb region size")
# print(mb2, mb4, mb8, mb16, mb32, mbMax)
print(f"{(mb2/total):.2%} would not be humongous with a 2mb region size (-XX:G1HeapRegionSize)")
print(f"{(mb4/total):.2%} would not be humongous with a 4mb region size")
print(f"{(mb8/total):.2%} would not be humongous with a 8mb region size")
print(f"{(mb16/total):.2%} would not be humongous with a 16mb region size")
print(f"{(mb32/total):.2%} would not be humongous with a 32mb region size")
print(f"{mbMax/total:.2%} would remain humongous with a 32mb region size")


#Total created bytes 1.88 gb
Expand Down

0 comments on commit a035f91

Please sign in to comment.