Skip to content

Commit a53baef

Browse files
committed
perf: reduce latest events benchmark from 100K to 50K events
1 parent b8146e8 commit a53baef

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

benches/benches/latest_events_scanning.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,10 @@ fn latest_events_scanning_benchmark(c: &mut Criterion) {
5555
group.sample_size(10);
5656
group.measurement_time(std::time::Duration::from_secs(120));
5757

58-
// Generate a large pool of events (100K) once
58+
// Generate a pool of events once
5959
// We'll benchmark fetching different "latest N" counts from this pool
60-
let total_events = 100_000;
60+
// Using 50K total
61+
let total_events = 50_000;
6162

6263
println!("Setting up environment with {total_events} total events...");
6364

@@ -73,8 +74,8 @@ fn latest_events_scanning_benchmark(c: &mut Criterion) {
7374
// - 100: Quick recent activity check
7475
// - 1,000: Moderate history lookup
7576
// - 10,000: Substantial history fetch
76-
// - 50,000: Heavy load retrieval
77-
for latest_count in [100, 1_000, 10_000, 50_000] {
77+
// - 25,000: Heavy load retrieval
78+
for latest_count in [100, 1_000, 10_000, 25_000] {
7879
println!("Benchmarking latest {latest_count} events...");
7980

8081
group.throughput(Throughput::Elements(latest_count as u64));

0 commit comments

Comments
 (0)