Skip to content

Commit

Permalink
keynote-benchmarks: measure the hot latency in 'roundtrip' (#2264)
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril authored Feb 17, 2025
1 parent 5e8eda4 commit 224f7b6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/keynote-benchmarks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ fn update_positions_by_collect(ctx: &ReducerContext) {

#[reducer]
fn roundtrip(ctx: &ReducerContext) {
// Warmup the index.
let id = ctx.db().velocity().id();
for x in 0..10_000 {
id.find(x);
}

// Measures the hot latency.
let _stopwatch = LogStopwatch::new("index_roundtrip");
ctx.db().velocity().id().find(333_333);
id.find(10_001);
}

2 comments on commit 224f7b6

@github-actions
Copy link

@github-actions github-actions bot commented on 224f7b6 Feb 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Criterion benchmark results

Error when comparing benchmarks: Couldn't find AWS credentials in environment, credentials file, or IAM role.

Caused by:
Couldn't find AWS credentials in environment, credentials file, or IAM role.

@github-actions
Copy link

@github-actions github-actions bot commented on 224f7b6 Feb 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Callgrind benchmark results Error when comparing benchmarks: Couldn't find AWS credentials in environment, credentials file, or IAM role.

Caused by:
Couldn't find AWS credentials in environment, credentials file, or IAM role.

Please sign in to comment.