# Seemingly large permformance regression on "^" power operator in \>=1.6

**URL:** <https://discourse.julialang.org/t/seemingly-large-permformance-regression-on-power-operator-in-1-6/60156>\
**Category:** General Usage\
**Tags:** bug, performance\
**Created:** [April 28, 2021, 9:44am UTC](https://discourse.julialang.org/t/seemingly-large-permformance-regression-on-power-operator-in-1-6/60156 "2021-04-28T09:44:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smpurkis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/smpurkis/32/23802_2.png) [@smpurkis](https://discourse.julialang.org/u/smpurkis)\
**Post date:** [April 28, 2021, 9:44am UTC](https://discourse.julialang.org/t/seemingly-large-permformance-regression-on-power-operator-in-1-6/60156/1 "2021-04-28T09:44:27Z")

</div>

Hello, I was doing a benchmark between Julia and a few other programming languages (Python, c++), when I was surprised to see Julia being slow compared to previous versions.

A quick benchmark between Julia 1.6.1 (1.6.0 gives same regression) and 1.5.0:

```julia
1.5.0
  167.168 ms (0 allocations: 0 bytes)
1.6.1
  852.693 ms (0 allocations: 0 bytes)

```

for the below code

```julia
using BenchmarkTools

function runLoop() 
    total_sum = 0.0
    for i in 0:10000000-1
        total_sum += i^0.1
    end
    return total_sum
end

println(VERSION)
# runLoop()
@btime runLoop()

```

Anyone have any idea why this might be?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [April 28, 2021, 9:50am UTC](https://discourse.julialang.org/t/seemingly-large-permformance-regression-on-power-operator-in-1-6/60156/2 "2021-04-28T09:50:02Z")

</div>

[https://github.com/JuliaLang/julia/issues/39976](https://github.com/JuliaLang/julia/issues/39976)

---

<div class="post-metadata">

**Author:** ![smpurkis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/smpurkis/32/23802_2.png) [@smpurkis](https://discourse.julialang.org/u/smpurkis)\
**Post date:** [April 28, 2021, 9:52am UTC](https://discourse.julialang.org/t/seemingly-large-permformance-regression-on-power-operator-in-1-6/60156/3 "2021-04-28T09:52:32Z")

</div>

Aw thanks for the link, marked as solution
