bbperf 0.0.1__tar.gz → 0.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. bbperf-0.0.2/.gitignore +2 -0
  2. bbperf-0.0.2/DEPLOY.txt +44 -0
  3. {bbperf-0.0.1 → bbperf-0.0.2}/PKG-INFO +1 -1
  4. {bbperf-0.0.1 → bbperf-0.0.2}/pyproject.toml +1 -1
  5. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/tcp_control_connection_class.py +4 -0
  6. bbperf-0.0.2/tests/run_test.sh +42 -0
  7. bbperf-0.0.1/.gitignore +0 -1
  8. bbperf-0.0.1/src/bbperf/run_test.sh +0 -41
  9. {bbperf-0.0.1 → bbperf-0.0.2}/LICENSE +0 -0
  10. {bbperf-0.0.1 → bbperf-0.0.2}/README.md +0 -0
  11. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/.gitignore +0 -0
  12. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/__init__.py +0 -0
  13. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/bbperf.py +0 -0
  14. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/calibration.py +0 -0
  15. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/client.py +0 -0
  16. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/const.py +0 -0
  17. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/control_receiver_thread.py +0 -0
  18. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/data_receiver_thread.py +0 -0
  19. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/data_sender_thread.py +0 -0
  20. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/data_udp_ping_sender_thread.py +0 -0
  21. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/exceptions.py +0 -0
  22. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/graph.py +0 -0
  23. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/output.py +0 -0
  24. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/server.py +0 -0
  25. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/tcp-graph.gp +0 -0
  26. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/udp-graph.gp +0 -0
  27. {bbperf-0.0.1 → bbperf-0.0.2}/src/bbperf/util.py +0 -0
@@ -0,0 +1,2 @@
1
+ dist
2
+ .venv
@@ -0,0 +1,44 @@
1
+
2
+ PREREQUISITES
3
+
4
+ Appropriate account/credentials to upload to the PyPI site
5
+
6
+ python3 -m pip install --upgrade pip build twine
7
+
8
+ BUILD
9
+
10
+ Create tar.gz and whl files in dist directory:
11
+
12
+ cd /path/to/bbperf/git/repo/dir <-- the directory with the pyproject.toml file
13
+
14
+ vim pyproject.toml <-- increment the version number
15
+
16
+ python3 -m build
17
+
18
+ UPLOAD
19
+
20
+ Upload dist files to production PyPI site:
21
+
22
+ cd /path/to/bbperf/git/repo/dir <-- the directory with the pyproject.toml file
23
+
24
+ python3 -m twine upload dist/*
25
+
26
+ To view:
27
+ https://pypi.org
28
+
29
+ MISCELLANEOUS
30
+
31
+ Using the test PyPI site:
32
+
33
+ python3 -m twine upload --repository testpypi dist/*
34
+
35
+ To view:
36
+ https://test.pypi.org
37
+
38
+ To install from test PyPI:
39
+ python3 -m pip install --upgrade --index-url https://test.pypi.org/simple/ --nodeps bbperf
40
+
41
+ Installing from the local git repository:
42
+
43
+ python3 -m pip install /path/to/bbperf/git/repo/dir <-- the directory with the pyproject.toml file
44
+
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bbperf
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: An end-to-end performance and bufferbloat measurement tool
5
5
  Project-URL: Homepage, https://github.com/cloudflare/bbperf
6
6
  Project-URL: Issues, https://github.com/cloudflare/bbperf/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "bbperf"
7
- version = "0.0.1"
7
+ version = "0.0.2"
8
8
  authors = [
9
9
  { name="Mike Freemon", email="mfreemon@cloudflare.com" },
10
10
  ]
@@ -3,6 +3,7 @@
3
3
 
4
4
  import json
5
5
  import argparse
6
+ import socket
6
7
 
7
8
  from . import const
8
9
  from . import util
@@ -24,6 +25,9 @@ class TcpControlConnectionClass:
24
25
 
25
26
  control_sock.settimeout(const.SOCKET_TIMEOUT_SEC)
26
27
 
28
+ # set TCP_NODELAY because the control messages back to the
29
+ # sender from the data receiver are part of the RTT measurement
30
+ control_sock.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
27
31
 
28
32
  def set_args(self, args):
29
33
  self.args = args
@@ -0,0 +1,42 @@
1
+ #!/bin/bash
2
+
3
+ # Copyright (c) 2024 Cloudflare, Inc.
4
+ # Licensed under the Apache 2.0 license found in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0
5
+
6
+ SERVER_ADDR=127.0.0.1
7
+
8
+ DURATION=10
9
+
10
+ OPTARGS=""
11
+ #OPTARGS="-k -g"
12
+
13
+ set -x
14
+
15
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS
16
+
17
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -R
18
+
19
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5M
20
+
21
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5M -R
22
+
23
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5Kpps
24
+
25
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5Kpps -R
26
+
27
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 20Kpps
28
+
29
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 20Kpps -R
30
+
31
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5M -u
32
+
33
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5M -u -R
34
+
35
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5Kpps -u
36
+
37
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5Kpps -u -R
38
+
39
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 20Kpps -u
40
+
41
+ bbperf -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 20Kpps -u -R
42
+
bbperf-0.0.1/.gitignore DELETED
@@ -1 +0,0 @@
1
- dist
@@ -1,41 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Copyright (c) 2024 Cloudflare, Inc.
4
- # Licensed under the Apache 2.0 license found in the LICENSE file or at https://www.apache.org/licenses/LICENSE-2.0
5
-
6
- SERVER_ADDR=127.0.0.1
7
-
8
- DURATION=10
9
-
10
- OPTARGS=""
11
- #OPTARGS="-k -g"
12
-
13
- set -x
14
-
15
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS
16
-
17
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -R
18
-
19
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5M
20
-
21
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5M -R
22
-
23
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5Kpps
24
-
25
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5Kpps -R
26
-
27
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 20Kpps
28
-
29
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 20Kpps -R
30
-
31
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5M -u
32
-
33
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5M -u -R
34
-
35
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5Kpps -u
36
-
37
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 5Kpps -u -R
38
-
39
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 20Kpps -u
40
-
41
- ./bbperf.py -c $SERVER_ADDR -t $DURATION $EXTRAARGS -b 20Kpps -u -R
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes