Skip to content

Commit

Permalink
Update Compiler/test/codegen.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Jameson Nash <[email protected]>
  • Loading branch information
nsajko and vtjnash committed Feb 19, 2025
1 parent 2c1d7e9 commit 81fe702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/test/codegen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ function g_dict_hash_alloc()
end
# Warm up
f_dict_hash_alloc(); g_dict_hash_alloc();
@test abs((@allocated f_dict_hash_alloc()) / (@allocated g_dict_hash_alloc()) - 1) < 0.4 # relaxed version of the above, while the above is skipped
@test abs((@allocated f_dict_hash_alloc()) / (@allocated g_dict_hash_alloc()) - 1) < 0.3

# returning an argument shouldn't alloc a new box
@noinline f33829(x) = (global called33829 = true; x)
Expand Down

0 comments on commit 81fe702

Please sign in to comment.