-
-
Notifications
You must be signed in to change notification settings - Fork 43
Closed
Description
First the good news, on default settings with rc1:
julia> @time include("""/home/pharaldsson/Sótt gögn/main_0.jl""")
13.651468 seconds (19.52 M allocations: 1.088 GiB, 6.54% gc time, 56.66% compilation time)
497272416
vs.
julia> using JuliaSyntax
julia> JuliaSyntax.enable_in_core!()
julia> @time include("""/home/pharaldsson/Sótt gögn/main_0.jl""")
12.534061 seconds (21.09 M allocations: 1.170 GiB, 7.48% gc time, 61.29% compilation time)
497272416
A bit faster, 8% (not 25% faster as I expected).
$ julia --compile=min
julia> @time include("""/home/pharaldsson/Sótt gögn/main_0.jl""")
6.139569 seconds (2.10 M allocations: 111.458 MiB, 2.19% gc time)
I knew this was faster (and it's a pathological benchmark code with lots of constprop, on default settings, I believe that doesn't apply in the interpreter).
But with your parser 5.3x slower:
julia> @time include("""/home/pharaldsson/Sótt gögn/main_0.jl""")
32.852067 seconds (29.27 M allocations: 669.355 MiB, 1.11% gc time)
497272416
I'm confused, the parser is the same in both cases, and the interpreter works on the same AST, so neither part should be slower?
Metadata
Metadata
Assignees
Labels
No labels