@shapeshift-labs/frontier-mutation 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +14 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -32,6 +32,20 @@ The compiled patch contains concrete paths, indexes, and values. Queries are com
32
32
 
33
33
  The public surface is intentionally small: build selectors, build a mutation plan, then compile or commit it. Planner choices, compiler passes, and CRDT lowering stay behind options and result metadata.
34
34
 
35
+ ## Performance
36
+
37
+ Frontier Mutation was measured from this package on Node v26.1.0, darwin arm64. Timings are median microseconds per operation across warmed samples; p95 is shown to make noise visible. Patch bytes are `JSON.stringify(patch)` bytes because this package emits Frontier patches and does not own binary transport encoding.
38
+
39
+ | Fixture | Matches | Strategy | Patch | Bytes | Compile median | Compile p95 | Apply median |
40
+ | --- | ---: | --- | ---: | ---: | ---: | ---: | ---: |
41
+ | Selector increment, 1% sparse 10k-row table | 100 | row-field | 1 op | 1.0 KiB | 3.55 ms | 4.04 ms | 10.35 us |
42
+ | Selector increment, indexed id IN | 100 | row-field | 1 op | 1.0 KiB | 2.84 ms | 3.12 ms | 8.77 us |
43
+ | Selector increment, 10% 10k-row table | 1,000 | row-field | 1 op | 8.5 KiB | 4.10 ms | 4.90 ms | 20.33 us |
44
+ | Repeated arithmetic fold, 1000x | 0 | direct | 1 op | 20 B | 0.45 us | 0.78 us | 0.05 us |
45
+ | Repeated text append fold, 1000x | 0 | direct | 1 op | 1.0 KiB | 0.55 us | 0.72 us | 0.10 us |
46
+
47
+ These are Frontier-only package measurements, not a competitor comparison. Hardware, Node version, selector shape, and table size will affect absolute timings.
48
+
35
49
  ## API Overview
36
50
 
37
51
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapeshift-labs/frontier-mutation",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Explicit mutation and selector plans compiled to Frontier patches or CRDT operations.",
5
5
  "type": "module",
6
6
  "license": "MIT",