To begin with, you are asking in a rather suboptimal way, sorry for being direct. The tips in Please read: make it easier to help you could help.
I have therefore no idea what is wrong in your case. My results are as following:
@time begin
function add(x,y)
x + y
end
println(add(3, 3.14))
end
#
6.140000000000001
0.020796 seconds (25.63 k allocations: 1.714 MiB, 82.16% compilation time)
(Mac Mini M1. My old Windows computer would be by a factor 2 or 3 slower)
PS - Using VS Code (scripting mode)