Skip to content

Commit bedac2c

Browse files
committed
update allocated codegen test from #55223
1 parent 99a18f6 commit bedac2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/compiler/codegen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ function g_dict_hash_alloc()
407407
end
408408
# Warm up
409409
f_dict_hash_alloc(); g_dict_hash_alloc();
410-
@test (@allocated f_dict_hash_alloc()) == (@allocated g_dict_hash_alloc())
410+
@test abs((@allocated f_dict_hash_alloc()) / (@allocated g_dict_hash_alloc()) - 1) < 0.1 # less that 10% difference
411411

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

0 commit comments

Comments
 (0)