Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

M3/heisenbug #11

Closed
wants to merge 15 commits into from
Prev Previous commit
Next Next commit
slight fix for latest julia0.4
  • Loading branch information
mauro3 committed Apr 11, 2015
commit d732360c46705a21b99eaca7d3914b5fa93f4445
4 changes: 2 additions & 2 deletions test/perf/perf.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ function compare_code_native(f1, f2, types, fraction_range=[-Inf,Inf])
out
end

df1 = prune_native(Base._dump_function(f1, types, true, false))
df2 = prune_native(Base._dump_function(f2, types, true, false))
df1 = prune_native(Base._dump_function(f1, types, true, false, true))
df2 = prune_native(Base._dump_function(f2, types, true, false, true))
rel_diff = abs(length(df1)-length(df2))/length(df2)
if !(fraction_range[1]<=rel_diff<=fraction_range[2])
println("""Warning: length of code native of $(f1.env.name) and $(f2.env.name) differ by $rel_diff,
Expand Down