# AOT Compiling? Performance Comparison

**URL:** <https://discourse.julialang.org/t/aot-compiling-performance-comparison/40870>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 6, 2020, 1:00pm UTC](https://discourse.julialang.org/t/aot-compiling-performance-comparison/40870 "2020-06-06T13:00:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ok\_ok](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ok_ok/32/15450_2.png) [@ok\_ok](https://discourse.julialang.org/u/ok_ok)\
**Post date:** [June 6, 2020, 1:00pm UTC](https://discourse.julialang.org/t/aot-compiling-performance-comparison/40870/1 "2020-06-06T13:00:25Z")

</div>

Hello Guys,

i want to make a Comparison between OOP and Functional Programming. For my Performance Part i wrote an Algorithm in C++ which can run on N threads. I want to write the same code (the logic behind) in Julia and compare the speed. I dont have the priviliges to install Julia i.e. on the Compute-Server i would do the Performance analyisis on, what is the best possible way to run Julia-Code on that Computer? Is there any way to compile Julia Code and run is just like an executable?  
The C++ Code i just compiled on a Linux VM and then copied the executables to the Compute-Server and i was able to test the Performance that way.  
The second Part of my Question is about Threadding in Julia. Are there any good Libraries i can use for that? I would love to have a Framework where i can just push “Jobs” to a Queue and set an amount of Workers so that i can easily test the Performance on diffrent amount of parallel Threads (72, 36, 16, 4, 2, 1).

Im new to Functional Programming and i just started learning. I appreciate every help, hint, … i can get.

Ty in advanced.

Edit:// So i so this Demo for Example About Threadding

[![](https://global.discourse-cdn.com/julialang/original/3X/9/5/9566624a7908f9321a43b154ef50248915a9fd53.jpeg "JuliaCon 2019 | Multi-threading in Julia with PARTR") ](https://www.youtube.com/watch?v=HfiRnfKxI64)

But i dont know how good this solution would be for my usecase since i have no priviliges to install anything on the server, and there cant pass the Number of Threads parameter to Julia bevor running the programm JIT-Compiled

---

<div class="post-metadata">

**Author:** ![Dictino](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dictino/32/217281_2.png) [@Dictino](https://discourse.julialang.org/u/Dictino)\
**Post date:** [June 6, 2020, 1:35pm UTC](https://discourse.julialang.org/t/aot-compiling-performance-comparison/40870/2 "2020-06-06T13:35:34Z")

</div>

Hi and welcome to Julia  
Installing Julia on Linux does not require special privileges just extract the generic Linux binaries in any folder you want and run it [https://julialang.org/downloads/platform/](https://julialang.org/downloads/platform/)

Did you tried it?

---

<div class="post-metadata">

**Author:** ![ok\_ok](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ok_ok/32/15450_2.png) [@ok\_ok](https://discourse.julialang.org/u/ok_ok)\
**Post date:** [June 6, 2020, 2:54pm UTC](https://discourse.julialang.org/t/aot-compiling-performance-comparison/40870/3 "2020-06-06T14:54:01Z")

</div>

ah okay that works 🙂

is there any way to set the number of threads dynamically within the code?

---

<div class="post-metadata">

**Author:** ![Dictino](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dictino/32/217281_2.png) [@Dictino](https://discourse.julialang.org/u/Dictino)\
**Post date:** [June 6, 2020, 3:08pm UTC](https://discourse.julialang.org/t/aot-compiling-performance-comparison/40870/4 "2020-06-06T15:08:08Z")

</div>

I guess not, the number of threads is fixed from the beginning.  
But things are moving fast in this area… so maybe I’m wrong 😅
