Skip to content

Commit

Permalink
address review
Browse files Browse the repository at this point in the history
  • Loading branch information
nsajko committed Feb 17, 2025
1 parent 8d30720 commit 7976a89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Compiler/test/codegen.jl
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,8 @@ 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 # less than 40% difference
@test_skip abs((@allocated f_dict_hash_alloc()) / (@allocated g_dict_hash_alloc()) - 1) < 0.1 # less that 10% difference
@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

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

0 comments on commit 7976a89

Please sign in to comment.