feat(sdk): shareMedia / onMediaGrant — media grants over a Shade session
A grant for a sealed file or a live channel rides the Double Ratchet like any message. With an onMediaGrant handler registered, grants are routed there instead of onMessage; with none, they arrive as text as before. Bench results for @shade/media (1 GiB, up to 200 live viewers, 100 % delivered) committed with their chart spec. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
67
bench/media-results.json
Normal file
67
bench/media-results.json
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"at": "2026-10-18T19:15:13.188Z",
|
||||
"bun": "1.3.5",
|
||||
"bigMiB": 1024,
|
||||
"seal": {
|
||||
"mibPerSec": 259.1,
|
||||
"ms": 3951.4,
|
||||
"overheadPct": 0.0046
|
||||
},
|
||||
"readDisk": {
|
||||
"mibPerSec": 480.2,
|
||||
"ms": 2132.4
|
||||
},
|
||||
"upload": {
|
||||
"mibPerSec": 50.9
|
||||
},
|
||||
"readHttp": {
|
||||
"mibPerSec": 209.5,
|
||||
"ms": 4889
|
||||
},
|
||||
"open": {
|
||||
"p50": 3.28,
|
||||
"p95": 6.58
|
||||
},
|
||||
"seek": {
|
||||
"p50": 3.98,
|
||||
"p95": 8.21,
|
||||
"max": 16.08
|
||||
},
|
||||
"live": [
|
||||
{
|
||||
"viewers": 1,
|
||||
"delivered": 100,
|
||||
"p50": 3,
|
||||
"p95": 12,
|
||||
"max": 14
|
||||
},
|
||||
{
|
||||
"viewers": 10,
|
||||
"delivered": 100,
|
||||
"p50": 6,
|
||||
"p95": 20,
|
||||
"max": 49
|
||||
},
|
||||
{
|
||||
"viewers": 50,
|
||||
"delivered": 100,
|
||||
"p50": 22,
|
||||
"p95": 58,
|
||||
"max": 213
|
||||
},
|
||||
{
|
||||
"viewers": 100,
|
||||
"delivered": 100,
|
||||
"p50": 15,
|
||||
"p95": 72,
|
||||
"max": 255
|
||||
},
|
||||
{
|
||||
"viewers": 200,
|
||||
"delivered": 100,
|
||||
"p50": 28,
|
||||
"p95": 151,
|
||||
"max": 443
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user