We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99a18f6 commit bedac2cCopy full SHA for bedac2c
test/compiler/codegen.jl
@@ -407,7 +407,7 @@ function g_dict_hash_alloc()
407
end
408
# Warm up
409
f_dict_hash_alloc(); g_dict_hash_alloc();
410
-@test (@allocated f_dict_hash_alloc()) == (@allocated g_dict_hash_alloc())
+@test abs((@allocated f_dict_hash_alloc()) / (@allocated g_dict_hash_alloc()) - 1) < 0.1 # less that 10% difference
411
412
# returning an argument shouldn't alloc a new box
413
@noinline f33829(x) = (global called33829 = true; x)
0 commit comments