# How a program coded and compiled in Julia compares to interpreted Julia in terms of performance?

**URL:** <https://discourse.julialang.org/t/how-a-program-coded-and-compiled-in-julia-compares-to-interpreted-julia-in-terms-of-performance/89995>\
**Category:** Performance\
**Tags:** performance, compilation, package-compiler\
**Created:** [November 9, 2022, 4:14pm UTC](https://discourse.julialang.org/t/how-a-program-coded-and-compiled-in-julia-compares-to-interpreted-julia-in-terms-of-performance/89995 "2022-11-09T16:14:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phantomcraft](https://avatars.discourse-cdn.com/v4/letter/p/bb73d2/32.png) [@phantomcraft](https://discourse.julialang.org/u/phantomcraft)\
**Post date:** [November 9, 2022, 4:14pm UTC](https://discourse.julialang.org/t/how-a-program-coded-and-compiled-in-julia-compares-to-interpreted-julia-in-terms-of-performance/89995/1 "2022-11-09T16:14:49Z")

</div>

I know that I can generate an executable file in Julia: [Creating a binary from Julia code · PackageCompiler](https://docs.juliahub.com/PackageCompiler/MMV8C/1.2.1/devdocs/binaries_part_2.html)

In this page has a timing comparison between the interpreted and compiled app.

My question is:

How the performance of an compiled executable in Julia compares to the interpreted way?

Is the compiled one faster than the interpreted? I’m asking this because Julia loads LLVM in memory for its JIT compilation, in that page above GCC is used.

---

<div class="post-metadata">

**Author:** ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)\
**Post date:** [November 9, 2022, 5:47pm UTC](https://discourse.julialang.org/t/how-a-program-coded-and-compiled-in-julia-compares-to-interpreted-julia-in-terms-of-performance/89995/2 "2022-11-09T17:47:20Z")

</div>

Julia is not normally interpreted. I’ve heard that there’s an interpreter mode, but I’ve never tried it. For normal use Julia code is always fully compiled before it is run. I would guess runtime is therefore very similar.
