Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.5.0-rc2 performance regression of creating Float32/64 vectors #18021

Closed
goszlanyi opened this issue Aug 14, 2016 · 1 comment
Closed

0.5.0-rc2 performance regression of creating Float32/64 vectors #18021

goszlanyi opened this issue Aug 14, 2016 · 1 comment
Labels
performance Must go faster regression Regression in behavior compared to a previous version
Milestone

Comments

@goszlanyi
Copy link

goszlanyi commented Aug 14, 2016

With the latest 0.5.0-rc2 Windows 64-bit binary I experience this.
Please, improve this serious slowdown if possible.

v32() = Float32[1,2,3]
v64() = Float64[1,2,3]

function test()
    n = Int(10e6)

    println("v32:")
    @time for i=1:n; v=v32(); end
    @time for i=1:n; v=v32(); end
    @time for i=1:n; v=v32(); end

    println("v64:")
    @time for i=1:n; v=v64(); end
    @time for i=1:n; v=v64(); end
    @time for i=1:n; v=v64(); end
end

test()

version 0.4.5 output:
v32:
0.330550 seconds (10.00 M allocations: 762.939 MB, 13.90% gc time)
0.317775 seconds (10.00 M allocations: 762.939 MB, 13.54% gc time)
0.319554 seconds (10.00 M allocations: 762.939 MB, 13.54% gc time)
v64:
0.310845 seconds (10.00 M allocations: 915.527 MB, 8.29% gc time)
0.303964 seconds (10.00 M allocations: 915.527 MB, 8.05% gc time)
0.304822 seconds (10.00 M allocations: 915.527 MB, 8.01% gc time)

version 0.5.0-rc2 output:
v32:
3.291748 seconds (10.00 M allocations: 915.563 MB, 5.11% gc time)
3.171754 seconds (10.00 M allocations: 915.527 MB, 2.14% gc time)
3.183680 seconds (10.00 M allocations: 915.527 MB, 2.04% gc time)
v64:
2.964666 seconds (10.00 M allocations: 1.043 GB, 0.76% gc time)
2.866506 seconds (10.00 M allocations: 1.043 GB, 0.74% gc time)
2.873545 seconds (10.00 M allocations: 1.043 GB, 0.75% gc time)

@goszlanyi goszlanyi changed the title speed regression with creating Float32/64 vectors slowdown with creating Float32/64 vectors Aug 14, 2016
@goszlanyi goszlanyi changed the title slowdown with creating Float32/64 vectors 0.5.0-rc2 performance regression of creating Float32/64 vectors Aug 14, 2016
@ufechner7
Copy link

Same regression on Linux, 64 bits.

@ViralBShah ViralBShah added this to the 0.5.0 milestone Aug 14, 2016
@andreasnoack andreasnoack added performance Must go faster regression Regression in behavior compared to a previous version labels Aug 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Must go faster regression Regression in behavior compared to a previous version
Projects
None yet
Development

No branches or pull requests

4 participants