# Linear solver \\(A, B) performance vs Matlab A\\b

**URL:** <https://discourse.julialang.org/t/linear-solver-a-b-performance-vs-matlab-a-b/2082>\
**Category:** General Usage\
**Created:** [February 13, 2017, 2:23pm UTC](https://discourse.julialang.org/t/linear-solver-a-b-performance-vs-matlab-a-b/2082 "2017-02-13T14:23:03Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [May 17, 2017, 9:42am UTC](https://discourse.julialang.org/t/linear-solver-a-b-performance-vs-matlab-a-b/2082/23 "2017-05-17T09:42:52Z")

</div>

You should’t benchmark in global scope like that [https://docs.julialang.org/en/stable/manual/performance-tips/](https://docs.julialang.org/en/stable/manual/performance-tips/)

julia 0.5:

```julia
julia> using BenchmarkTools

julia> a = randn(90,90); b = randn(90);

julia> @btime $a \ $ b;
  103.155 μs (8 allocations: 65.08 KiB)

```

julia 0.6:

```julia
julia> using BenchmarkTools

julia> a = randn(90,90); b = randn(90);

julia> @btime $a \ $ b;
  100.378 μs (8 allocations: 65.08 KiB)

```

---

_[View the full topic](https://discourse.julialang.org/t/linear-solver-a-b-performance-vs-matlab-a-b/2082)._
