1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
source: netbench/src/scenario/builder/tests.rs
expression: "scenario(|scenario|\n {\n let server = scenario.create_server();\n scenario.create_client(|client|\n {\n client.connect_to(server,\n |conn|\n {\n conn.open_send_stream(|local|\n {\n local.set_send_rate(1024.bytes() / 50.millis());\n local.send(1.megabytes());\n },\n |peer|\n {\n peer.set_receive_rate(1024.bytes() / 50.millis());\n peer.receive(1.megabytes());\n });\n });\n });\n })"
---
{
"id": "",
"clients": [
{
"scenario": [
{
"connect": {
"server_id": 0,
"server_connection_id": 0,
"client_connection_id": 0
}
}
],
"connections": [
{
"ops": [
{
"open_send_stream": {
"stream_id": 0
}
},
{
"send_rate": {
"stream_id": 0,
"bytes": 1024,
"period_ms": 50
}
},
{
"send": {
"stream_id": 0,
"bytes": 1000000
}
},
{
"send_finish": {
"stream_id": 0
}
}
]
}
],
"certificate_authorities": [
0
]
}
],
"servers": [
{
"connections": [
{
"peer_streams": [
[
{
"receive_rate": {
"stream_id": 0,
"bytes": 1024,
"period_ms": 50
}
},
{
"receive": {
"stream_id": 0,
"bytes": 1000000
}
},
{
"receive_finish": {
"stream_id": 0
}
}
]
]
}
],
"private_key": 1,
"certificate": 2,
"certificate_authority": 0
}
]
}