Skip to content

Commit

Permalink
optimize the python version of abs2 in the microbenchmarks (JuliaLang…
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfgang Maier authored and simonbyrne committed Feb 27, 2018
1 parent e4234b2 commit a29a989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/perf/micro/perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def randmatmul(n):
## mandelbrot ##

def abs2(z):
return real(z)*real(z) + imag(z)*imag(z)
return z.real*z.real + z.imag*z.imag

def mandel(z):
maxiter = 80
Expand Down

0 comments on commit a29a989

Please sign in to comment.