Function
handle_verify
(
rt: &Runtime,
ctx: &SessionContext,
name: &str,
benchmark: &mut SqlBenchmark,
)
Source from the content-addressed store, hash-verified
| 197 | } |
| 198 | |
| 199 | fn handle_verify( |
| 200 | rt: &Runtime, |
| 201 | ctx: &SessionContext, |
| 202 | name: &str, |
| 203 | benchmark: &mut SqlBenchmark, |
| 204 | ) { |
| 205 | info!("Verifying benchmark {name} results ..."); |
| 206 | |
| 207 | rt.block_on(async { |
| 208 | benchmark |
| 209 | .run(ctx, true) |
| 210 | .await |
| 211 | .unwrap_or_else(|err| panic!("Failed to run benchmark {name}: {err:?}")); |
| 212 | benchmark |
| 213 | .verify(ctx) |
| 214 | .await |
| 215 | .unwrap_or_else(|err| panic!("Verification failed: {err:?}")); |
| 216 | }); |
| 217 | |
| 218 | info!("Verified benchmark {name} results successfully"); |
| 219 | } |
| 220 | |
| 221 | criterion_group!(benches, sql); |
| 222 | criterion_main!(benches); |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…