Skip to content

Websocket version#1

Draft
noonio wants to merge 2 commits intodeltadefi-protocol:mainfrom
noonio:add-nix
Draft

Websocket version#1
noonio wants to merge 2 commits intodeltadefi-protocol:mainfrom
noonio:add-nix

Conversation

@noonio
Copy link

@noonio noonio commented Jan 8, 2026

I wanted to see what happens with a websocket-style submission where we always wait before sending the next tx.

This does also, in the end, show quite a downturn in tx confirmation time.

Here's how it looks

image

Forgive me for the terrible JavaScript 😅

Trivia

I made the graph with plottille

> nix-shell -p "python3.withPackages (ps: [ ps.plotille ])" 
> python
>>> import plotille
>>> x = [ float(a.strip()) for a in open("x.txt", "r").readlines() ]
>>> y = [ float(a.strip()) for a in open("y.txt", "r").readlines() ]
>>> print(plotille.scatter(x, y))

where y is:

> jq '.[].elapsedMs' batch-ws.json >y.txt 

and x is:

> for i in `seq -f %g 1 1137`
do
 echo $i >>x.txt
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant