diff options
| author | Adam Soltys <[email protected]> | 2026-09-30 18:03:52 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-30 18:03:52 +0000 |
| commit | c5030c0b56463974fdac5b963c5a1c217b30ba5c (patch) | |
| tree | e952c4e4e8e0719a8ab118a2499da0a02f423858 /tools | |
| parent | 0570f48910ddc4ea10d27fb8ab7992fbd013a0b7 (diff) | |
| download | coinosv3-c5030c0b56463974fdac5b963c5a1c217b30ba5c.tar.gz coinosv3-c5030c0b56463974fdac5b963c5a1c217b30ba5c.zip | |
Public pictures and videos go to blossom.ditto.pub first, then primal, nostr.download, nostr.build.
A 2026-09-30 benchmark (4 MB mp4, 110 KB jpeg; upload then fetch, twice):
ditto took the mp4 in ~0.6 s and serves from ~120 ms; primal ~1.5 s;
nostr.download ~1-2 s but rejects a JPEG with data after its end marker
(motion photos); blossom.nostr.build ~5 s with ~600 ms first byte.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WMMwWYJkPQxLgfMsY7hWcU
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/media-upload-test.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/media-upload-test.js b/tools/media-upload-test.js index e19cac7..e587e41 100644 --- a/tools/media-upload-test.js +++ b/tools/media-upload-test.js @@ -39,7 +39,7 @@ check('sends signed Blossom authorization', calls[1].init.headers.authorization. }); check('an unreachable host is skipped within seconds', u === 'https://alive.example/x.mov' && Date.now() - t0 < 7000 && puts.length === 1); } -check('nostr.build is the first host', (await import('../src/media-upload.js')).PUBLIC_MEDIA_SERVERS[0] === 'https://blossom.nostr.build'); +check('ditto is the first host', (await import('../src/media-upload.js')).PUBLIC_MEDIA_SERVERS[0] === 'https://blossom.ditto.pub'); const bareHashUrl = await uploadPublicMedia(file, sign, { servers: ['https://media.example'], timeoutMs: 1000, |
