• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLang / julia / 1543
78%

Build:
DEFAULT BRANCH: master
Ran 22 May 2026 11:40AM UTC
Jobs 0
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1543

push

buildkite

web-flow
add LoopIdiomRecognizePass for `memset`-table loops (#61873)

fixes https://github.com/JuliaLang/julia/issues/61870, closes
https://github.com/JuliaLang/julia/pull/61871

```julia
julia> using BenchmarkTools

julia> function my_zero_inbounds!(A::Matrix{Float64})
           for i in eachindex(A)
               @inbounds A[i] = 0.0
           end
           return A
       end
my_zero_inbounds! (generic function with 1 method)

julia> function my_zero!(A::Matrix{Float64})
           for i in eachindex(A)
               A[i] = 0.0
           end
           return A
       end
my_zero! (generic function with 1 method)

julia> @benchmark my_zero_inbounds!(X) setup=X=rand(1000, 1000)
BenchmarkTools.Trial: 10000 samples with 1 evaluation per sample.
 Range (min … max):  27.083 μs … 226.500 μs  ┊ GC (min … max): 0.00% … 0.00%
 Time  (median):     32.750 μs               ┊ GC (median):    0.00%
 Time  (mean ± σ):   41.400 μs ±  15.265 μs  ┊ GC (mean ± σ):  0.00% ± 0.00%

  ▅▆██▇▅▃▂▁▁ ▇ ▂ ▂▃▂  ▁    ▂▅▅▅▄▃▂▁▂▁▁▃▁▁▁▂▂▂▁▁ ▁    ▁ ▃▂      ▂
  ██████████▇████████▇█▇▇▇▆██████████████████████▇███████▇▆▇█▆ █
  27.1 μs       Histogram: log(frequency) by time      82.8 μs <

 Memory estimate: 0 bytes, allocs estimate: 0.

julia> @benchmark my_zero!(X) setup=X=rand(1000, 1000)
BenchmarkTools.Trial: 10000 samples with 1 evaluation per sample.
 Range (min … max):  27.125 μs … 156.000 μs  ┊ GC (min … max): 0.00% … 0.00%
 Time  (median):     30.167 μs               ┊ GC (median):    0.00%
 Time  (mean ± σ):   33.619 μs ±   5.419 μs  ┊ GC (mean ± σ):  0.00% ± 0.00%

         █▇                            ▂                        
  ▂▃▃▄▂▂████▃▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▃▃▃▃▂▃▅▇▇█▄▂▂▂▂▂▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁ ▂
  27.1 μs         Histogram: frequency by time         45.8 μs <

 Memory estimate: 0 bytes, allocs estimate: 0.
```

previously the non-inbounds one was slower
```julia
julia> @benchmark my_zero!(X) setup=X=rand(1000, 1000)
BenchmarkTools.Trial: 10000 samples with 1 evaluation per sample... (continued)
Source Files on build 1543
Detailed source file information is not available for this build.
  • Back to Repo
  • 8bb4ad6b on github
  • Prev Build on master (#1542)
  • Next Build on master (#1544)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc