Skip to content

Add some basic benchmarking of the tracker#64

Merged
mickvandijke merged 1 commit intodevelopmentfrom
63-add-some-basic-benchmarking-of-the-tracker
Aug 12, 2022
Merged

Add some basic benchmarking of the tracker#64
mickvandijke merged 1 commit intodevelopmentfrom
63-add-some-basic-benchmarking-of-the-tracker

Conversation

@mickvandijke
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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