diff --git a/doc/cost-models/README.md b/doc/cost-models/README.md index b057059ff36..61952eda61f 100644 --- a/doc/cost-models/README.md +++ b/doc/cost-models/README.md @@ -59,7 +59,7 @@ doc/cost-models/ ## Data Sources - **Benchmark Data**: `plutus-core/cost-model/data/benching-conway.csv` -- **Cost Models**: `plutus-core/cost-model/data/builtinCostModelC.json` +- **Cost Models**: `plutus-core/cost-model/data/builtinCostModelE.json` Data is loaded dynamically from the Plutus repository using the browser's `fetch()` API. @@ -164,7 +164,7 @@ No build process required - the workflow copies static files directly to `gh-pag **Model not found:** -- Verify function name matches key in `builtinCostModelC.json` +- Verify function name matches key in `builtinCostModelE.json` - Check console for detailed error messages **Plot not rendering:** diff --git a/doc/cost-models/index.html b/doc/cost-models/index.html index a910eb1c6b8..2709b3ee1ad 100644 --- a/doc/cost-models/index.html +++ b/doc/cost-models/index.html @@ -20,6 +20,7 @@
+ Looks up a list of indices in a Plutus array; linear in the number of indices, + independent of the array size. + (3D visualization: Haystack Size × Needles Size vs Time, plus per-index time + distribution histogram) +
+@@ -157,7 +168,7 @@
@@ -239,7 +250,7 @@
builtinCostModelC.json
+ builtinCostModelE.json
+ Interactive visualization of benchmark data and fitted cost model for the MultiIndexArray builtin function.
+ This function looks up a list of indices (needles) in a Plutus array (haystack); the cost is linear in the
+ number of indices and independent of the array size, so the model plane in the 3D view is flat along the
+ haystack axis. The number of indices is limited, because beyond that limit the execution time is not
+ predictable from the index count alone; the histogram below shows the per-index time distribution.
+
+ Net time per index, (t − overhead) / indexCount, for benchmarks with at least the
+ selected number of indices. The dashed line marks the net slope of the fitted model.
+
No benchmarks with index count ≥ ${histThreshold}
${message}
+