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

Add some basic benchmarking of the tracker #64

Merged

Conversation

mickvandijke
Copy link
Member

Added script to benchmark the tracker's http(s) announce performance and memory usage.
The lua script auto generates a new info hash for every request and is executed using the benchmarking tool called "wrk": https://github.com/wg/wrk

I have included a readme in the tests folder on how to run the benchmark.

README.md

Running Benchmarks

HTTP(S) Announce Peer + Torrent

For this benchmark we use the tool wrk.

To run the benchmark using wrk, execute the following example script (change the url to your own tracker url):

wrk -c200 -t1 -d10s -s ./wrk_benchmark_announce.lua --latency http://tracker.dutchbits.nl

Copy link
Member

@josecelano josecelano left a comment

Choose a reason for hiding this comment

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

Cool! Maybe we can add a scheduled workflow and run it every week. Maybe you could write the current results in the README.

@mickvandijke mickvandijke merged commit 73f22fc into development Aug 12, 2022
@mickvandijke mickvandijke deleted the 63-add-some-basic-benchmarking-of-the-tracker branch August 12, 2022 08:37
@mickvandijke mickvandijke linked an issue Aug 12, 2022 that may be closed by this pull request
@da2ce7
Copy link
Contributor

da2ce7 commented Aug 12, 2022

Or a BENCHMARKS_HISTORY.md file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Add some basic benchmarking of the tracker
3 participants