# Benchmark MATLAB & Julia for Matrix Operations

**URL:** <https://discourse.julialang.org/t/benchmark-matlab-julia-for-matrix-operations/2000>\
**Category:** Performance\
**Created:** [February 9, 2017, 12:50pm UTC](https://discourse.julialang.org/t/benchmark-matlab-julia-for-matrix-operations/2000 "2017-02-09T12:50:37Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [February 9, 2017, 12:53pm UTC](https://discourse.julialang.org/t/benchmark-matlab-julia-for-matrix-operations/2000/2 "2017-02-09T12:53:17Z")

</div>

Hi,

Welcome to Julia!

In Julia, you should _never_ benchmark in “global scope” – your benchmarking code should be run inside a function; please see the [performance tips](http://docs.julialang.org/en/stable/manual/performance-tips/).

---

_[View the full topic](https://discourse.julialang.org/t/benchmark-matlab-julia-for-matrix-operations/2000)._
