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

Creating small arrays is slower in 1.0 (compared to 0.6) #30623

Closed
ViralBShah opened this issue Jan 7, 2019 · 1 comment
Closed

Creating small arrays is slower in 1.0 (compared to 0.6) #30623

ViralBShah opened this issue Jan 7, 2019 · 1 comment
Labels
performance Must go faster regression Regression in behavior compared to a previous version

Comments

@ViralBShah
Copy link
Member

Benchmarking small array creation using ones (size 1 and 10) 0.6.4 vs. 1.0.3 suggests that it is about 15% slower in 1.0.

julia> versioninfo()
Julia Version 0.6.4
Commit 9d11f62bcb (2018-07-09 19:09 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell MAX_THREADS=16)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)

julia> @btime ones(1);
  25.919 ns (1 allocation: 96 bytes)

julia> @btime ones(10);
  29.851 ns (1 allocation: 160 bytes)
julia> versioninfo()
Julia Version 1.0.3
Commit 099e826241 (2018-12-18 01:34 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin14.5.0)
  CPU: Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, skylake)

julia> @btime ones(1);
  30.834 ns (1 allocation: 96 bytes)

julia> @btime ones(10);
  34.186 ns (1 allocation: 160 bytes)
@ViralBShah ViralBShah added performance Must go faster regression Regression in behavior compared to a previous version labels Jan 7, 2019
@ViralBShah
Copy link
Member Author

@vtjnash @JeffBezanson I am guessing there's not much to do here. Should we close? The performance here for 1.0.x and 1.6-master is the same.

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

2 participants