Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark Report #463

Merged
merged 40 commits into from
Dec 18, 2024
Merged

Benchmark Report #463

merged 40 commits into from
Dec 18, 2024

Conversation

shubham3121
Copy link
Member

@shubham3121 shubham3121 commented Dec 4, 2024

This pull request introduces a comprehensive benchmarking framework for the SyftBox client. We measure the following:

  • Network Stats:
    • We measure HTTP Stats like dns, ssl handshake time, etc.
    • We measure TCP Stats which measure the TCP latency and jitter in making connection to the server url.
  • Sync Stats:
    • We measure the time it takes to upload/download a sample file to the syftbox server
    • We benchmark it against different file sizes

Implemented different report types:

  • JSONReport - JSON formatted benchmark report, available in a json file.
  • ConsoleReport - Human readable format benchmark report, available on stdout

Example

syftbox client benchmark

image

Checklist

@shubham3121 shubham3121 changed the title [WIP] Benchmark Report Benchmark Report Dec 12, 2024
@shubham3121 shubham3121 self-assigned this Dec 12, 2024
Copy link
Member

@itstauq itstauq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome to me 🚀

"""Remove requests older than 1 minute"""
cutoff = datetime.now() - timedelta(minutes=1)
while self.requests and self.requests[0] < cutoff:
self.requests.popleft()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

syftbox/client/benchmark/netstats_http.py Outdated Show resolved Hide resolved
@shubham3121 shubham3121 merged commit 0379c42 into main Dec 18, 2024
14 checks passed
@itstauq itstauq deleted the shubham/client-metrics branch December 18, 2024 20:48
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.

3 participants