# Julia is Eight times Slower than Go on Numerical Scheme

**URL:** <https://discourse.julialang.org/t/julia-is-eight-times-slower-than-go-on-numerical-scheme/59383>\
**Category:** Performance\
**Created:** [April 16, 2021, 5:00am UTC](https://discourse.julialang.org/t/julia-is-eight-times-slower-than-go-on-numerical-scheme/59383 "2021-04-16T05:00:13Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [April 16, 2021, 4:33pm UTC](https://discourse.julialang.org/t/julia-is-eight-times-slower-than-go-on-numerical-scheme/59383/12 "2021-04-16T16:33:23Z")

</div>

> [@ejolson](#):
>
> Do I allocate a, b and c locally and then pass them in as arguments to all the functions?

Yes, that (you may use a `struct` or a tuple to organize things). You could also use closures, or functors. Here many alternatives were dicussed: [Define data-dependent function, various ways](https://discourse.julialang.org/t/define-data-dependent-function-various-ways/48988)

---

_[View the full topic](https://discourse.julialang.org/t/julia-is-eight-times-slower-than-go-on-numerical-scheme/59383)._
