# Why is this Julia code considerably slower than Matlab

**URL:** https://discourse.julialang.org/t/why-is-this-julia-code-considerably-slower-than-matlab/2365
**Category:** New to Julia
**Tags:** performance
**Created:** [February 28, 2017, 3:03pm UTC](https://discourse.julialang.org/t/why-is-this-julia-code-considerably-slower-than-matlab/2365 "2017-02-28T15:03:36Z")
**Posts on this page:** 1
**Showing post:** 30

<div class="post-metadata">

### Author: ![zsoerenm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zsoerenm/32/664_2.png) [@zsoerenm](https://discourse.julialang.org/u/zsoerenm)
#### Post date: [March 1, 2017, 12:26pm UTC](https://discourse.julialang.org/t/why-is-this-julia-code-considerably-slower-than-matlab/2365/30 "2017-03-01T12:26:32Z")

</div>

@RoyiAvital For 1 thread I get:

- Min: 3.3162
- Median: 3.3204
- Mean: 3.3284
- Max: 3.3925

whereas for 8 threads I get:

- Min: 1.4319
- Median: 1.4568
- Mean; 1.4599
- Max: 1.4910

---

_[View the full topic](https://discourse.julialang.org/t/why-is-this-julia-code-considerably-slower-than-matlab/2365)._
