Repository navigation
Conversation
Contributor
|
| Project | Bencher |
| Branch | u/ep/changepoint/port |
| Testbed | intel-v1 |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result microseconds (µs) (Result Δ%) | Upper Boundary microseconds (µs) (Limit %) |
|---|---|---|---|
| Adapter::Json | 📈 view plot 🚷 view threshold | 5.26 µs(+1.19%)Baseline: 5.20 µs | 5.48 µs (96.07%) |
| Adapter::Magic (JSON) | 📈 view plot 🚷 view threshold | 5.13 µs(+2.01%)Baseline: 5.03 µs | 5.29 µs (96.96%) |
| Adapter::Magic (Rust) | 📈 view plot 🚷 view threshold | 26.35 µs(-1.82%)Baseline: 26.84 µs | 28.65 µs (91.97%) |
| Adapter::Rust | 📈 view plot 🚷 view threshold | 4.52 µs(+1.21%)Baseline: 4.47 µs | 4.67 µs (96.76%) |
| Adapter::RustBench | 📈 view plot 🚷 view threshold | 4.53 µs(+1.44%)Baseline: 4.46 µs | 4.67 µs (96.82%) |
epompeii
force-pushed
the
u/ep/changepoint/port
branch
from
December 1, 2026 23:03
f4a92bc to
e064fbb
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new crate,
plus/bencher_changepoint, ports the default changepoint detection of Apache Otava to Rust: the E-divisive statistic of Matteson and James proposes candidates, a pooled variance Student t-test decides significance, the series is scanned in overlapping windows, and a relaxed first pass finds weak candidates that a merge then prunes against the real p value and the minimum magnitude. It is a pure function with no database, I/O, or async: a series and Otava's 3 parameters (window length, p value threshold, minimum magnitude) in, every changepoint with its statistics out.The port follows Otava's master at commit
d4f62a1, which carries 2 fixes that no release has yet: the merge refreshes both neighbors of a removed changepoint, and the t-test uses sample standard deviations. The port moves to the first release that carries them.It departs from Otava in one place: a series with a non-finite value is refused with an error.
Faithfulness
d4f62a1over its own series, the TigerBeetle series in its perf test, the real series in MongoDB'ssignal-processing-algorithms, and series chosen to pin each edge (odd windows, ties in the statistic and between intervals, the first pass at a p value of 1, a window of 2, and the order of each sum). Indices are asserted exactly, statistics to a relative 1e-9. The generator script sits beside the vectors.statrs. A tie in exact arithmetic between 2 p values can break differently from scipy, mostly on integer series at a high p value threshold; the docs say so.License
The ported files and their vectors are derived from Apache-2.0 work, so they carry Apache-2.0 headers that name Otava and the commit and state the changes, the crate is
license = "Apache-2.0", and a newNOTICEcarries Otava's notice. The Plus license applies only to what is not distributed under MIT or Apache-2.0.Nothing calls the crate yet.