Skip to content

Instantly share code, notes, and snippets.

@toidiu
toidiu / vary_ack_threshold_remote_desktop.json
Created June 15, 2022 22:51
(remote<>desktop). 15ms delay. number indicates packet threshold on server. the client packet threshold is then varied 2, 10, 30, 60, 80, 100. measure on server.
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":12212000.0},{"p":0,"s":2,"x":0,"y":76398592000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":
@toidiu
toidiu / vary_ack_threshold_local.json
Last active June 16, 2022 17:53
(desktop <> desktop). varying the number of acks tx and rx. measured on server. number indicates the server threshold. client is varied from 2, 10, 30, 60, 80, 100
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":1628000.0},{"p":0,"s":2,"x":0,"y":8699904000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":0,
@toidiu
toidiu / server_client_ack_delay_local_wlan.json
Last active June 15, 2022 21:22
Local ack delay testing over wifi (laptop and desktop). measured on server. server-main is baseline server_batch_acks batching acks on server shows regression server_delayed_ack delaying(based on rtt) acks on server shows similar performance server_main-client_time_delayed.. delaying(based on rtt) acks on client shows improvement server_delayed_…
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":1476000.0},{"p":0,"s":2,"x":0,"y":8704000000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":0,
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":12952000.0},{"p":0,"s":2,"x":0,"y":76398592000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":12892000.0},{"p":0,"s":2,"x":0,"y":76398592000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":
@toidiu
toidiu / 20ms-rx-tx.json
Last active June 16, 2022 19:08
ec2 instances, different datacenter. with delay of 20ms. measured on server. vary the rx and tx packet threshold. s is sender (server), r is receiver(client) packet threshold.
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":12912000.0},{"p":0,"s":2,"x":0,"y":76398592000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":
@toidiu
toidiu / 70ms-rx-tx-10-80.json
Last active June 16, 2022 19:08
ec2 instances, different datacenter. with delay of 70ms. measured on server. vary the rx and tx packet threshold. s is sender (server), r is receiver(client) packet threshold.
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":12900000.0},{"p":0,"s":2,"x":0,"y":76398592000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":12932000.0},{"p":0,"s":2,"x":0,"y":76398592000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":12784000.0},{"p":0,"s":2,"x":0,"y":76398592000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":
{"$schema":"https://vega.github.io/schema/vega/v5.json","axes":[{"format":"%ss","formatType":"time","orient":"top","scale":"scale$x"},{"format":"%ss","formatType":"time","orient":"bottom","scale":"scale$x"},{"format":"~s","orient":"left","scale":"scale$statValue","title":{"signal":"ui$view"}}],"config":{"axis":{"grid":true,"gridColor":"#ccc","gridOpacity":1,"gridWidth":0.5,"labelPadding":10,"tickSize":5,"tickWidth":0.5},"background":"#fff","legend":{"labelBaseline":"middle","labelFontSize":11,"symbolSize":50,"symbolType":"square"}},"data":[{"name":"data$stats","values":[{"p":0,"s":0,"x":0,"y":0.0},{"p":0,"s":1,"x":0,"y":12192000.0},{"p":0,"s":2,"x":0,"y":76398592000.0},{"p":0,"s":3,"x":0,"y":0.0},{"p":0,"s":4,"x":0,"y":0.0},{"p":0,"s":5,"x":0,"y":0.0},{"p":0,"s":6,"x":0,"y":0.0},{"p":0,"s":7,"x":0,"y":0.0},{"p":0,"s":8,"x":0,"y":0.0},{"p":0,"s":9,"x":0,"y":0.0},{"p":0,"s":10,"x":0,"y":0.0},{"p":0,"s":11,"x":0,"y":0.0},{"p":0,"s":12,"x":0,"y":0.0},{"p":0,"s":13,"x":0,"y":0.0},{"p":0,"s":14,"x":0,"y":0.0},{"p":