Skip to content

Instantly share code, notes, and snippets.

@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 / vary_ack_threshold_50_percent_cpu.json
Created June 16, 2022 06:25
(desktop<>desktop). measured on server. limit cpu on server to 50% using cpulimt. number represents server packet threshold. vary client packet threshold 2,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":1552000.0},{"p":0,"s":2,"x":0,"y":8851456000.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 / vary_ack_threshold_100_and_50_percent_cpu.json
Created June 16, 2022 08:02
(desktop<>desktop). measure on server. cpu 100% and 50%. server is packet threshold 10. client varies 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":1492000.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,
@toidiu
toidiu / vary_ack_threshold_local_laptop_desktop.json
Last active June 16, 2022 17:51
(laptop<>desktop). delay 13-30ms when running netbench, 5-300ms when not. number specifies server packet threshold and client varies 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":1636000.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,
@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":
{"id":"QDtHVagEaFF3-hPIiYEpCJBTQgLv3WXzzL9NYRQKcwM","clients":[{"scenario":[{"connect":{"server_id":0,"server_connection_id":0,"client_connection_id":0}}],"connections":[{"ops":[{"open_bidirectional_stream":{"stream_id":0}},{"send":{"stream_id":0,"bytes":1000}},{"receive":{"stream_id":0,"bytes":50000000}},{"send_finish":{"stream_id":0}},{"receive_finish":{"stream_id":0}}]}],"certificate_authorities":[0]}],"servers":[{"connections":[{"peer_streams":[[{"receive":{"stream_id":0,"bytes":1000}},{"send":{"stream_id":0,"bytes":50000000}},{"send_finish":{"stream_id":0}},{"receive_finish":{"stream_id":0}}]]}],"private_key":1,"certificate":2,"certificate_authority":0}],"certificates":[{"pem":"-----BEGIN CERTIFICATE-----\r\nMIIBwTCCAWegAwIBAgIJAPFUYCg2ciJiMAoGCCqGSM49BAMCMCUxCzAJBgNVBAYM\r\nAlVTMRYwFAYDVQQDDA1uZXRiZW5jaCBDQSAwMCAXDTc1MDEwMTAwMDAwMFoYDzQw\r\nOTYwMTAxMDAwMDAwWjAlMQswCQYDVQQGDAJVUzEWMBQGA1UEAwwNbmV0YmVuY2gg\r\nQ0EgMDBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABFxmLKlPIiR2ySwmXK8SGvM3\r\nE+/fThnOTktqFncSQOgkpxCpHOj5c
{"$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":