Cast by whimsi.eth

Show the cast this replies to

ty for this! used your response + my questions and had codex build a speed test for validators (as the snapdiff site had me information overloaded) noticed terminus has removed the ability to add custom nodes with the update, but could be useful?

3 likes1 recasts4 replies

4 replies

  • Er so I **THINK**: - Terminus webapp restricts you to a preset list of nodes. - Terminal native apps let you add whatever custom nodes you want. I've checked both interfaces on my side and that's what I see right now. Think it's a CORS tingy, which makes sense.

    3 likes · 0 recasts
  • How are you testing for the latency? Which calls/technique are you using to derive HTTPS latency? I'm asking because the stats seem to be very slow compared to what other methods I'm using to poll latency. For example the imgnAI node returned over 500ms latency, when my other HTTPS tests show less than 180ms, and raw ping ~80ms.

    2 likes · 0 recastsRead 1 reply

    yeah good question (this is mostly from codex since i’m not too well versed) the tool sends up to 5 GET /v1/info requests per node directly from your browser. it averages the successful ones, timing from just before fetch() until the JSON has been read and checked. a fresh connection can also include DNS, TCP and TLS setup. raw ping is just the ICMP round trip codex tested imgnAI with curl and got ~246ms for GET / vs ~731ms for GET /v1/info over the same connection. most of the gap was waiting for the first byte codex asks what URL and method were you using for the sub-180ms HTTPS test?

    2 likes · 0 recastsRead 2 replies

    also here’s the curl command: `host=hypersnap.imgnai.com curl -sS --max-time 8 \ -w 'url=%{url_effective} status=%{http_code} new=%{num_connects} ttfb=%{time_starttransfer} total=%{time_total}\n' \ -o /dev/null "$host/v1/info" \ -o /dev/null "$host/" \ -o /dev/null "$host/v1/info" \ -o /dev/null "$host/" \ -o /dev/null "$host/v1/info"`

    2 likes · 0 recastsRead 1 reply

    thanks. So `/v1/info`, like any API endpoint, is not a good way to measure **latency**, this moreso feels like **info call response time**, if this makes sense. Bear in mind that a lot of calls send more data, others send less. So the best way to test this is simply with ICMP ping, which is the literal definition of latency, in many senses. Where you cannot (such as the node has blocked pings at the firewall), you can do a curl of the root domain i.e., `hypersnap.imgnai.com` and only time up to TCP connect (`time_connect` in curl). This works for HTTPS as well as HTTP port 3381 nodes (this is actually the default for nodes--not https) Remember with latency you are timing network conditions, not data gathering conditions!

    2 likes · 0 recastsRead 1 reply
  • btw, I maintain a list of all hypersnap clients, apps, sites, here: github.com/arf0nz0/hypersnap_stuff/tree/main/clients_and_apps If you wish to make your site a permanent tingy, feel free to submit a PR to add it! Or you can just drop me all the details, and I will add it for you, just fill in this template: ``` ### Project Name <a href="link.to/image.jpg" target="_blank"> <img src="link.to/image.jpg" alt="screenshot" width="400"> </a> - Description: a short description. - Developer: [dev_name](warpcats.com/arfonzo) - Link(s): [website](quorummessenger.com/) - Pure hypersnap? ✅/no (and add details if you want) ```

    No likes or recasts yet
  • Didn’t remove anything! Custom nodes are still available in mobile app. Web app is only locked to trusted nodes only. Ios just has a max of 1 default and 2 user nodes.

    2 likes · 0 recastsRead 1 reply

    yeah this must've been where i was getting confused!

    No likes or recasts yet