This adds 10MiB downloads hack to tornettools [Discussion]#73
This adds 10MiB downloads hack to tornettools [Discussion]#73hiromipaw wants to merge 1 commit intoshadow:mainfrom
Conversation
| if goodput is not None: | ||
| db['client_goodput_5MiB'].append(goodput) | ||
|
|
||
| goodput = __goodput_bps( |
There was a problem hiding this comment.
FYI I think this isn't going to find anything since this code is parsing the public tor data, which doesn't have 10 MB downloads. (It shouldn't hurt anything either, though)
There was a problem hiding this comment.
Yes did mentioned it above: "Please not that I have added the option to parse the same download size from onionperf. This is not needed at this point since we do not have onionperf clients producing these tests. I have mainly added this for consistency and in case we might consider having a few onionperf clients producing these test in the not so far future."
| # interested in calculatin the transfer times for the simulated network | ||
| for torperf_db in torperf_dbs: | ||
| torperf_db['data'] = [torperf_db['dataset']['download_times'][bytes_key]] | ||
| if int(bytes_key) <= 5242880: |
There was a problem hiding this comment.
Ok for a one-off, but if the aim was to merge this we'd probably want to avoid hard coding this constant here, and instead just make this generally handle a size missing from the public data.
There was a problem hiding this comment.
I thought the idea was not to merge this like this. Should I refactor this so that it can be merged?
There was a problem hiding this comment.
No, it's fine do this as a one-off, was just double checking.
It'd be helpful to add a note to the PR description that this PR is for discussion purposes and isn't actually a request to merge
|
It seems this is for discussion only - do not merge. |
This adds the possibility to test 10MiB downloads with tornettools. See https://gitlab.torproject.org/jnewsome/sponsor-61-sims/-/issues/15
For the time being this is a test that is going to be used for the S61 simulation work within Tor. As mentioned in the gitlab issue we might think to add different download sizes to https://github.com/shadow/tornettools/blob/main/tornettools/generate_defaults.py later on.
Please not that I have added the option to parse the same download size from onionperf. This is not needed at this point since we do not have onionperf clients producing these tests. I have mainly added this for consistency and in case we might consider having a few onionperf clients producing these test in the not so far future.