summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarsten Loesing <karsten.loesing@gmx.net>2020-05-22 12:20:04 +0200
committerKarsten Loesing <karsten.loesing@gmx.net>2020-05-22 12:20:04 +0200
commit3252ddfaad76f6e940afd29285b5644a8ffafcee (patch)
treec2f1089c8224bda3ed5d38ee46bce471359d869c
parent3e79f084dfa918e06695a12106672740478a4c79 (diff)
Remove 50 KiB and 1 MiB downloads.tasks-33434-34024-and-34023
With the new partial downloads timestamps we can easily extract time-to-first-50-KiB and time-to-first-1-MiB numbers from the 5 MiB downloads. An analysis of past measurements showed that these numbers are comparable. By removing those smaller downloads we increase the total number of actually useful measurements. Total bandwidth consumption from this change increases from 14 to 140 kbps which still seems very reasonable. Implements #34023.
-rw-r--r--onionperf/model.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/onionperf/model.py b/onionperf/model.py
index 03e7084..cd44118 100644
--- a/onionperf/model.py
+++ b/onionperf/model.py
@@ -73,8 +73,6 @@ class TorperfModel(GeneratableTGenModel):
if self.socksproxy is not None:
g.node["start"]["socksproxy"] = self.socksproxy
g.add_node("pause", time="5 minutes")
- g.add_node("transfer50k", type="get", protocol="tcp", size="50 KiB", timeout="270 seconds", stallout="0 seconds")
- g.add_node("transfer1m", type="get", protocol="tcp", size="1 MiB", timeout="270 seconds", stallout="0 seconds")
g.add_node("transfer5m", type="get", protocol="tcp", size="5 MiB", timeout="270 seconds", stallout="0 seconds")
g.add_edge("start", "pause")
@@ -84,9 +82,7 @@ class TorperfModel(GeneratableTGenModel):
g.add_edge("pause", "pause")
# these are chosen with weighted probability, change edge 'weight' attributes to adjust probability
- g.add_edge("pause", "transfer50k", weight="12.0")
- g.add_edge("pause", "transfer1m", weight="2.0")
- g.add_edge("pause", "transfer5m", weight="1.0")
+ g.add_edge("pause", "transfer5m")
return g