-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
## Benchmark Comparison | ||
## Benchmark Comparison between Streaming and Non-Streaming Methods | ||
|
||
Using these sampling techniques can bring down considerably the memory usage of the program, | ||
but there are cases where they are also more time efficient, as demostrated below with a comparison with the | ||
equivalent methods of `StatsBase.sample`: | ||
|
||
![image](https://github.com/user-attachments/assets/5ca9637b-606a-4325-bf59-7c601df41fd6) | ||
![comparison_stream_algs](https://github.com/user-attachments/assets/b5774a5a-5caf-4ca3-ac21-deff23b3cda4) | ||
|
||
The “collection-based with setup” methods consider collecting the iterator in memory as part of the benchmark. | ||
The code to reproduce this benchmark is in [benchmark_comparison_stream.jl](https://github.com/JuliaDynamics/StreamSampling.jl/blob/main/benchmark/benchmark_comparison_stream.jl). | ||
The code to reproduce the results is in [benchmark_comparison_stream.jl](https://github.com/JuliaDynamics/StreamSampling.jl/blob/main/benchmark/benchmark_comparison_stream.jl). |