Repository navigation
Conversation
Contributor
|
| Project | Bencher |
| Branch | u/ep/changepoint/slot |
| 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.27 µs(+1.43%)Baseline: 5.20 µs | 5.47 µs (96.34%) |
| Adapter::Magic (JSON) | 📈 view plot 🚷 view threshold | 5.13 µs(+2.06%)Baseline: 5.03 µs | 5.29 µs (97.10%) |
| Adapter::Magic (Rust) | 📈 view plot 🚷 view threshold | 26.34 µs(-1.89%)Baseline: 26.85 µs | 28.64 µs (91.96%) |
| Adapter::Rust | 📈 view plot 🚷 view threshold | 4.55 µs(+1.86%)Baseline: 4.47 µs | 4.67 µs (97.46%) |
| Adapter::RustBench | 📈 view plot 🚷 view threshold | 4.54 µs(+1.69%)Baseline: 4.46 µs | 4.67 µs (97.13%) |
epompeii
force-pushed
the
u/ep/changepoint/slot
branch
from
December 1, 2026 23:03
f4603a0 to
e237943
Compare
This branch has not been 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 threshold gains a second model slot,
changepoint_model, besidemodel. The threshold's key does not change, and no threshold changes identity. Which slot a model belongs in follows from its test: a test that checks a line goes inchangepoint_model, and every other test goes inmodel. No line test exists yet, so in this change every test is a metric test and the new slot refuses every model. A later change adds the line test with one arm.What changes
threshold.changepoint_model_id, nullable, a foreign key tomodel, directly aftermodel_id, by table recreate. Every existing row has it empty. Every index and foreign key is kept, and the new column gets its own index.changepoint_modelbesidemodel,nullwhen empty.changepoint_modelobject beside the flat model fields. On an update, an absent key changes nothing,nullempties the slot, and an object sets it. A model whose test belongs in the other slot is refused with a 400 that names the slot.GETa threshold takes?changepoint_model=<uuid>beside?model=<uuid>to pin a model of that slot. A pin whose test belongs in the other slot is a 400.resetclears every slot the report did not name. At BMF v0 nothing changes.resetreplaces both.models(the metric lineage) besidechangepoint_modelandchangepoint_models, and each list row withchangepoint_model.modelonly.--thresholds-resetclears each slot that the subcommand does not specify.Tests
lib/api_projects/tests/changepoint_model.rscovers the migration up, down, and up; the empty slot in responses; the refusals on create, update, and pins; a pinned alert view; the console page; report reset; clone and re-sync; and that no delete or replacement leaves a slot pointing at a replaced or deleted model.