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

0.51 Extract test runtime #372

Merged
merged 6 commits into from Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion af/fastpath/fastpath/core.py
Expand Up @@ -1080,7 +1080,9 @@ def score_psiphon(msm) -> dict:
logbug(0, "no resolver_ip", msm)
scores["accuracy"] = 0.0

scores["extra"] = dict(test_runtime=msm.get("test_runtime"))
truntime = msm.get("test_runtime")
btime = tk.get("bootstrap_time")
FedericoCeratto marked this conversation as resolved.
Show resolved Hide resolved
scores["extra"] = dict(test_runtime=truntime, bootstrap_time=btime)
return scores


Expand Down
2 changes: 1 addition & 1 deletion af/fastpath/fastpath/tests/test_functional.py
Expand Up @@ -995,7 +995,7 @@ def test_score_psiphon(cans):
"blocking_country": 0.0,
"blocking_isp": 0.0,
"blocking_local": 0.0,
"extra": {"test_runtime": 15.25602748},
"extra": {"test_runtime": 15.25602748, "bootstrap_time": 5.532639553},
}
break

Expand Down