alamb commented on code in PR #27811:
URL: https://github.com/apache/datafusion/pull/27811#discussion_r4731613309
##########
benchmarks/src/util/sampler.rs:
##########
@@ -108,6 +137,70 @@ impl Sampler {
/// last returned.
pub fn record(&mut self, elapsed: Duration) {
self.samples.push(elapsed.as_secs_f64());
+ if let Some(lockstep) = self.lockstep {
+ lockstep.lock().expect("lockstep poisoned").report(elapsed);
+ }
+ }
+}
+
+/// A line protocol over two FIFOs between a benchmark process and an
Review Comment:
does "line protocol" mean "a protocol based on sending text lines"?
##########
benchmarks/interleave.py:
##########
@@ -0,0 +1,205 @@
+#!/usr/bin/env python3
+# SPDX-License-Identifier: Apache-2.0
+# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for
additional information regarding copyright ownership
+# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under
one or more contributor license agreements
+
+"""Run a baseline and a branch benchmark with interleaved iterations.
Review Comment:
Is it possible to update the existing benchmark runners to use this setup
rather than have to have a separate entry point?
##########
benchmarks/src/imdb/run.rs:
##########
@@ -493,6 +493,8 @@ mod tests {
max_time: None,
target_precision: 0.02,
max_iterations: 1000,
+ lockstep_in: None,
Review Comment:
it would be nice if we could (finally) remove the non benchmark_runner
versions
(this is an editorial comment, mostly me waiting with bated breath for
@Omega359 's final PR to complete this, nothing to change on this PR)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]