@jarenjs/charts 0.49.2 → 0.56.0

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 +6 -6
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -251,17 +251,17 @@ property-tested over thousands of random frames rather than assumed.
251
251
 
252
252
  Measured (`npm run benchmark:charts`, one appended point):
253
253
 
254
- <!--bm:charts.sessionTable-->
254
+ <!--fact:charts.sessionTable-->
255
255
  | points × series | session tick | wholesale tick | frames incremental |
256
256
  |---|---:|---:|---:|
257
257
  | 100 × 5 | 6.26 µs | 301 µs | 1100 of 1100 |
258
258
  | 1,000 × 5 | 4.84 µs | 1.1 ms | 1100 of 1100 |
259
259
  | 10,000 × 5 | 4.44 µs | 8.61 ms | 1100 of 1100 |
260
260
  | 10,000 × 5 *(sampled)* | 3.25 ms | 2.53 ms | 0 of 1100 |
261
- <!--/bm-->
261
+ <!--/fact-->
262
262
 
263
263
  The session tick is *flat* in n — it
264
- moves <!--bm:charts.sessionFlatness-->0.7× while the wholesale tick grows 28.6×<!--/bm-->. Supported types: `line` (appends
264
+ moves <!--fact:charts.sessionFlatness-->0.7× while the wholesale tick grows 28.6×<!--/fact-->. Supported types: `line` (appends
265
265
  and ring-buffer evictions), `bar` (live counts and sums) and
266
266
  `candlestick` (keyed kline upserts — one candle group re-renders). The
267
267
  website's Binance demo runs on it.
@@ -331,17 +331,17 @@ reports the data rather than the drawing.
331
331
 
332
332
  Measured (`npm run benchmark:charts`, one series):
333
333
 
334
- <!--bm:charts.samplingTable-->
334
+ <!--fact:charts.samplingTable-->
335
335
  | source points | drawn | method | source → AST | source → svg |
336
336
  |---:|---:|---|---:|---:|
337
337
  | 2,000 | 2,000 | none | 73.4 µs → 72.3 µs | 587 µs → 515 µs |
338
338
  | 20,000 | 560 | lttb | 838 µs → 1.28 ms | 5.84 ms → 1.05 ms |
339
339
  | 100,000 | 560 | lttb | 4.35 ms → 5.36 ms | 27.8 ms → 5.42 ms |
340
- <!--/bm-->
340
+ <!--/fact-->
341
341
 
342
342
  Choosing the points costs about what mapping them costs — the sampler
343
343
  reads every reading either way — so the AST column is a small **loss**.
344
- What it buys is the render — <!--bm:charts.samplingWin-->100,000 points draw as 560 and render 5.1× faster<!--/bm-->. The invariants above are asserted in the benchmark
344
+ What it buys is the render — <!--fact:charts.samplingWin-->100,000 points draw as 560 and render 5.1× faster<!--/fact-->. The invariants above are asserted in the benchmark
345
345
  before a single timing is printed.
346
346
 
347
347
  **Sampling is not retention.** `createStreamAdapter`'s `maxPoints`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jarenjs/charts",
3
3
  "private": false,
4
- "version": "0.49.2",
4
+ "version": "0.56.0",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
7
7
  "types": "./dist/types/index.d.ts",
@@ -70,7 +70,7 @@
70
70
  "prepack": "npm run build:types"
71
71
  },
72
72
  "dependencies": {
73
- "@jarenjs/core": "^0.49.2",
74
- "@jarenjs/view": "^0.49.2"
73
+ "@jarenjs/core": "^0.56.0",
74
+ "@jarenjs/view": "^0.56.0"
75
75
  }
76
76
  }