# Julia/JuMP efficiency comparison between different CPUs

**URL:** <https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920>\
**Category:** Performance\
**Tags:** jump\
**Created:** [September 2, 2024, 1:24am UTC](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920 "2024-09-02T01:24:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Betristor](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/betristor/32/45264_2.png) [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Post date:** [September 2, 2024, 1:24am UTC](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920/1 "2024-09-02T01:24:26Z")

</div>

What performance metrics of CPUs should we pay attention to since I noticed that for two kinds of CPUs, the modeling speed and memory consumption is totally different.  
For Intel(R) Xeon(R) Platinum 8358 CPU @ 2.60GHz, my program took over two days to finish the modeling and solving processes. But for AMD EPYC 9654 CPU @ 2.40 GHz, this process took just four to six hours. What causes the 8-12x difference in the efficiency?

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [September 2, 2024, 1:50am UTC](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920/2 "2024-09-02T01:50:06Z")

</div>

Some of it will be the different computers.

But if you are solving a difficult MIP, it could just be luck of different random seeds etc.

There’s no easy answer without knowing the details of your particular code.

---

<div class="post-metadata">

**Author:** ![Betristor](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/betristor/32/45264_2.png) [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Post date:** [September 2, 2024, 1:54am UTC](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920/3 "2024-09-02T01:54:20Z")

</div>

The performance difference is measured for the same JuMP model. The Intel CPUs are on the hpc of my university and AMD CPUs are on my machine. I’m quite curious about the dramatic performance difference.

---

<div class="post-metadata">

**Author:** ![Oscar\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oscar_smith/32/25343_2.png) [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Post date:** [September 2, 2024, 2:00am UTC](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920/4 "2024-09-02T02:00:43Z")

</div>

There’s a couple “obvious” things that would cause a difference.  
1st. the Epyc is 96 cores vs 32 for the xeon. That’s a 3x difference right there. Secondly, the Epyc has 384mb of L3 cache compared to 48 for the intel CPU. If the model first fully or mostly in cache, that will mean that the xeon is having to use main memory a lot more which will be a bunch slower. Thirdly, although the Epyc is only 2.4 ghz base, it has a 3.5 ghz all core turbo which could add another 50% performance.

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [September 2, 2024, 2:09am UTC](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920/5 "2024-09-02T02:09:48Z")

</div>

For the cores: it really depends on the model solver that they are using. More cores is not always a linear speedup with MIP solvers.

> **[Calculating on Multiple Cores](https://support.gurobi.com/hc/en-us/community/posts/360078238812-Calculating-on-Multiple-Cores)**
>
> Hello everybody.
> I have got a MIP model that takes Gurobi 9 days to solve on 4 cores
> on a 24-core-machine it is still running after 10 days
> What is going wrong?

> **[MILP Parallelism](https://support.gurobi.com/hc/en-us/community/posts/20707011325841-MILP-Parallelism)**
>
> Hi,
> I am trying to make my MILP model faster by parallelism using multiple cores (around 30) in a supercomputer.
> After reading articles and watching videos, my understanding is that Gurobi uses all...

---

<div class="post-metadata">

**Author:** ![Betristor](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/betristor/32/45264_2.png) [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Post date:** [September 2, 2024, 2:32am UTC](https://discourse.julialang.org/t/julia-jump-efficiency-comparison-between-different-cpus/118920/6 "2024-09-02T02:32:16Z")

</div>

My experiences do tell me that the solving performance is not linear to the cores. I tried different core configurations to find a suitable one for my models and 32 seems perfect for my situation.
