# Different running performance in parallelization of Threads

**URL:** <https://discourse.julialang.org/t/different-running-performance-in-parallelization-of-threads/133397>\
**Category:** General Usage\
**Tags:** question, performance, parallel, parallel-computing\
**Created:** [October 23, 2025, 7:21pm UTC](https://discourse.julialang.org/t/different-running-performance-in-parallelization-of-threads/133397 "2025-10-23T19:21:58Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Xu\_Shan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xu_shan/32/214900_2.png) [@Xu\_Shan](https://discourse.julialang.org/u/Xu_Shan)\
**Post date:** [October 26, 2025, 7:20pm UTC](https://discourse.julialang.org/t/different-running-performance-in-parallelization-of-threads/133397/21 "2025-10-26T19:20:39Z")

</div>

no, the data and output array are already loaded

---

<div class="post-metadata">

**Author:** ![Xu\_Shan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xu_shan/32/214900_2.png) [@Xu\_Shan](https://discourse.julialang.org/u/Xu_Shan)\
**Post date:** [October 26, 2025, 7:36pm UTC](https://discourse.julialang.org/t/different-running-performance-in-parallelization-of-threads/133397/22 "2025-10-26T19:36:40Z")

</div>

> [@ufechner7](#):
>
> commenting helps with the performance

did it, but still 2 times of the thread performance…

---

<div class="post-metadata">

**Author:** ![Xu\_Shan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xu_shan/32/214900_2.png) [@Xu\_Shan](https://discourse.julialang.org/u/Xu_Shan)\
**Post date:** [October 27, 2025, 5:07pm UTC](https://discourse.julialang.org/t/different-running-performance-in-parallelization-of-threads/133397/23 "2025-10-27T17:07:21Z")

</div>

quick updates…I found that I could make the @threads parellization has the same amount of time compared to single thread running on the log in node…not on the computation node by `srun pty`…

```julia-auto
(on login node)
julia> @btime coreTEM!($space_selected_models, $space_forcing[space_index], $space_spinup_forcing[space_index], $loc_forcing_t, 
                   $space_output[space_index], $space_land[space_index], $tem_info)
  29.113 s (7 allocations: 51.33 KiB)

julia> @btime runTEM!($info.models.forward, $run_helpers.space_forcing, $run_helpers.space_spinup_forcing, $run_helpers.loc_forcing_t, 
                   $run_helpers.space_output, $run_helpers.space_land, $run_helpers.tem_info)
  23.544 s (88 allocations: 56.81 KiB)

```

```julia-auto
(on srun node)
julia> @btime coreTEM!($space_selected_models, $space_forcing[space_index], $space_spinup_forcing[space_index], $loc_forcing_t, 
                          $space_output[space_index], $space_land[space_index], $tem_info)
  20.707 s (7 allocations: 51.33 KiB)

julia> @btime runTEM!($info.models.forward, $run_helpers.space_forcing, $run_helpers.space_spinup_forcing, $run_helpers.loc_forcing_t, 
                          $run_helpers.space_output, $run_helpers.space_land, $run_helpers.tem_info)
  39.177 s (88 allocations: 56.81 KiB)

```

[Previous page](https://discourse.julialang.org/t/different-running-performance-in-parallelization-of-threads/133397.md?page=1)
