File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ using Documenter
88@info " Building Documentation"
99makedocs (
1010 sitename = " StreamSampling.jl" ,
11+ modules = [StreamSampling],
1112 pages = [
1213 " Introduction" => " index.md" ,
1314 " Basics" => " basics.md" ,
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ iter = 1:10^7;
2626Running with both version we get
2727
2828``` @example 1
29- @btime fit_iter!(rs, $iter) setup=(rs = ReservoirSampler{Int}(10, AlgRSWRSKIP(); mutable = true));
29+ @benchmark fit_iter!(rs, $iter) setup=(rs = ReservoirSampler{Int}(10, AlgRSWRSKIP(); mutable = true))
3030```
3131
3232``` @example 1
33- @btime fit_iter!(rs, $iter) setup=(rs = ReservoirSampler{Int}(10, AlgRSWRSKIP(); mutable = false));
33+ @benchmark fit_iter!(rs, $iter) setup=(rs = ReservoirSampler{Int}(10, AlgRSWRSKIP(); mutable = false))
3434```
3535
3636As you can see, the immutable version is 50% faster than
You can’t perform that action at this time.
0 commit comments