Skip to content

Commit

Permalink
Update benchmark to new results
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Oct 31, 2024
1 parent 29df06d commit 06a6dbf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/src/benchmark.md
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).

0 comments on commit 06a6dbf

Please sign in to comment.